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
Instead of relying on the button class name, switch to detect post-status changes in JS
Motivation: it's fragile to rely on a 3rd party button class name to listen to. Especially since this can potentially change between WP versions.
Instead, we can use the 'core/editor' API on `wp.data` to listen to changes in the post status and uncheck the checkbox that way.
0 commit comments