Skip to content

Commit

Permalink
Revert "Site Editor: Set the <title> on the list page to be same as t…
Browse files Browse the repository at this point in the history
…he CPT name (#36805)" (#37270)

This reverts commit 8113d35.
  • Loading branch information
noisysocks authored Dec 10, 2021
1 parent 0b82b4d commit 8325a80
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/full-site-editing/edit-site-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,18 +225,3 @@ function register_site_editor_homepage_settings() {
);
}
add_action( 'init', 'register_site_editor_homepage_settings', 10 );

/**
* Sets the HTML <title> in the Site Editor list page to be the title of the CPT
* being edited, e.g. 'Templates'.
*/
function gutenberg_set_site_editor_list_page_title() {
global $title;
if ( gutenberg_is_edit_site_list_page() ) {
$post_type = get_post_type_object( $_GET['postType'] );
if ( $post_type ) {
$title = $post_type->labels->name;
}
}
}
add_action( 'load-appearance_page_gutenberg-edit-site', 'gutenberg_set_site_editor_list_page_title' );

0 comments on commit 8325a80

Please sign in to comment.