Thanks so much for making and maintaining this plugin and for all your open source work! 🙏🏻 I'm currently using this plugin for the first time on a client site and I noticed a little bug. When I create posts with the REST API for my client I could see that the post status was always being returned as status": "private" when I received the 201 response from the REST API. e.g.
After some digging I found where you are setting this so that you get the "Update" button to show in Gutenberg. Ideally I think it's better to wrap this in a check to see if we're in the admin area that way the 201 responses from WordPress via external calls to the REST API will return the correct status when a post is created. e.g.
I should also note that I did check to make sure this maintains backwards compatibility in the block editor and it does 😁
Hopefully in the future we might be able to be able to extend the PostPublishButton component to get the Publish button working for this plugin as well!
Hey @imath,
Thanks so much for making and maintaining this plugin and for all your open source work! 🙏🏻 I'm currently using this plugin for the first time on a client site and I noticed a little bug. When I create posts with the REST API for my client I could see that the post status was always being returned as
status": "private"
when I received the201
response from the REST API. e.g.After some digging I found where you are setting this so that you get the "Update" button to show in Gutenberg. Ideally I think it's better to wrap this in a check to see if we're in the admin area that way the
201
responses from WordPress via external calls to the REST API will return the correct status when a post is created. e.g.I should also note that I did check to make sure this maintains backwards compatibility in the block editor and it does 😁
Hopefully in the future we might be able to be able to extend the
PostPublishButton
component to get the Publish button working for this plugin as well!