imath / wp-statuses

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

Wordpress 5.5.1 Compatibility #47

Closed andrefredette closed 4 years ago

andrefredette commented 4 years ago

Since updating to 5.5.1 we've discovered an issue where clicking "Publish" on a draft post will reload the page and display the "post published" message but the status remains as draft. Manually selecting "Publicly publish" from the dropdown removes the text from the publish button (https://share.getcloudapp.com/2NuyQGq9) but does work to publish the post.

There are also some javascript notices being reported when the status dropdown changes:

postL10n.saveDraft is deprecated since version 5.5.0! Use wp.i18n instead. common.min.js?ver=5.5.1:2 
postL10n.publishOnPast is deprecated since version 5.5.0! Use wp.i18n instead. common.min.js?ver=5.5.1:2 
postL10n.update is deprecated since version 5.5.0! Use wp.i18n instead. common.min.js?ver=5.5.1:2 
postL10n.dateFormat is deprecated since version 5.5.0! Use wp.i18n instead. common.min.js?ver=5.5.1:2 
imath commented 4 years ago

Thanks for your feedback, I'll look at it asap

imath commented 4 years ago

Hi @andrefredette I believe the PR #48 is fixing the issue. Could you test it?

andrefredette commented 4 years ago

@imath thank you, yes that PR does in fact correct the issue and restores normal behavior to the publish button.