You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That changes things a bit since in the gutenberg-integration.js script when you use getEditedPostAttribute, WP Statuses returns private as status for all statuses, but adds a custom_status attribute that has the correct values.
We made a fork and fixed the issue for us. It seems like a fundamental change and one that maybe should be better accommodated for in WP Statuses. I am leaving our fix here in case anybody else needs it. @ocean90 If you can think of a workaround, I would be glad to submit a PR.
Hi,
Thanks for your work with Public Post Preview.
I’m started to using it along with WP Statuses (https://github.com/imath/wp-statuses).
That changes things a bit since in the
gutenberg-integration.js
script when you usegetEditedPostAttribute
, WP Statuses returns private as status for all statuses, but adds a custom_status attribute that has the correct values.public-post-preview/js/src/components/preview-toggle/index.js
Line 229 in 82720ce
Do you think it is possible to somehow filter the attribute to use, or add some conditional so that the Public Post Preview works with WP Statuses?
Thanks
The text was updated successfully, but these errors were encountered: