imath / wp-statuses

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

Not wordpress 5.7 compatible #51

Closed shawfactor closed 3 years ago

shawfactor commented 3 years ago

In wordpress 5.7 the function is_post_status_viewable has been added and is used in a number of places. Th problem is that $_builtin is a private variable in the WP_Statuses_Core_Status class. This creates fatal errors. I patched in by making $_builtin a public variable. I am nt sure that this is the best approacch but it works

imath commented 3 years ago

Thanks for your report, I'll give it a look asap.

andronocean commented 3 years ago

I made a pull request (#52) with @shawfactor's solution, if you want a quick fix. It's resolved the errors in my environments.

imath commented 3 years ago

The PR has been merged. Many thanks to @andronocean