Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Plugin: Avoid setting generic "Edit Post" title on load #13552
This pull request seeks to remove special handling for the admin screen's
However, this behavior was never incorporated into WordPress 5.0, and in retrospect, I don't know that it adds much value. To me, there is likely to be little confusion caused from a user seeing "Add New Post" in the title of a screen if they had in-fact started their editing session by creating a new post. In any case, an enhancement here should probably be proposed to core proper, as most PHP is being removed from the Gutenberg plugin when deferring to core is possible.
Verify that page titles of the post editor, both in adding a new post and editing an existing one, align between the Gutenberg plugin and in the block editor provided through WordPress 5.0.
Specifically, a new post should show "Add New Post", and editing an existing post should show "Edit Post".
danielbachhuber left a comment
Fair enough. I started creating a core ticket just now to port this over but, when I reviewed the current behavior, I agree with your assessment. We can leave the existing behavior as-is.