-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Framework: Remove client-side document title updates #8831
Conversation
Updated in 417ecf05de7d1734bad950c9d9e36d426844f177 |
It needs to be in a more generic state. Setting the global `$title` overrides the behavior of `get_admin_page_title()` while still letting the value be filterable via `admin_title`.
417ecf0
to
786de1e
Compare
gutenberg.php
Outdated
@@ -187,6 +189,16 @@ function gutenberg_init( $return, $post ) { | |||
add_filter( 'screen_options_show_screen', '__return_false' ); | |||
add_filter( 'admin_body_class', 'gutenberg_add_admin_body_class' ); | |||
|
|||
$post_type_object = get_post_type_object( $post_type ); | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be /*
, not /**
Important note: Multi-line comments must not begin with /** (double asterisk) as the parser might mistake it for a DocBlock. Use /* (single asterisk) instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in 2667bf4
Failure now is:
|
Closes #3702
This pull request seeks to deprecate the
DocumentTitle
component and remove its current usage in the editor. This component exists to update the browser tab title on changes to the post's title. With these changes, the title rendered by the server will be used, and will not be manipulated client-side.Testing instructions:
Verify that there are no title changes which occur client-side.
Ensure the title from the server is correct "Edit Post ‹ Site Title — WordPress"