imath / wp-statuses

WordPress plugin to ease Custom Post Statuses integration
GNU General Public License v2.0
160 stars 27 forks source link

Uncaught Error: Cannot access private property WP_Statuses_Core_Status::$_builtin #53

Closed toddlevy closed 3 years ago

toddlevy commented 3 years ago

The latest version of WordPress core (5.7) introduces an issue where private posts (or posts with a custom status that's not set to public) throw this error in admin and frontend...

Uncaught Error: Cannot access private property WP_Statuses_Core_Status::$_builtin

I tracked this down to the $_builtin property of the WP_Statuses_Core_Status within this plugin being private (while all the other properties are public).

BEFORE private $_builtin = false;

AFTER public $_builtin = false;

imath commented 3 years ago

Hi, you can update to master as this was fixed in the PR #52

rodrigo-arias commented 3 years ago

Hi @imath do you have plans to release a version patch that includes #52? I think the last 2.1.1 does not include it. Thanks

imath commented 3 years ago

Sure ! Thanks for reminding me about it. I’ll do it asap.

imath https://imathi.eu


De : Rodrigo Arias @.> Envoyé : Wednesday, April 7, 2021 11:26:24 PM À : imath/wp-statuses @.> Cc : imath @.>; Mention @.> Objet : Re: [imath/wp-statuses] Uncaught Error: Cannot access private property WP_Statuses_Core_Status::$_builtin (#53)

Hi @imathhttps://github.com/imath do you have plans to release a version patch that includes #52https://github.com/imath/wp-statuses/pull/52? I think the last 2.1.1 does not include it. Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/imath/wp-statuses/issues/53#issuecomment-815275640, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAN74HCPYJ4IJJBXG55T5QDTHTEYBANCNFSM4ZHILPMA.

claytoncollie commented 3 years ago

@imath Hi there. Any chance we can get a release soon? Thanks for your hard work on this plugin!

imath commented 3 years ago

Hi @claytoncollie @rodrigo-arias & @toddlevy

I've just released the 2.1.2 minor version, it's available here: https://github.com/imath/wp-statuses/releases/tag/2.1.2

Sorry for the delay and thanks for your patience.