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 committed Dec 13, 2021
1 parent 586f999 commit 2d48c46
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 @@ -234,21 +234,6 @@ 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' );

/**
* Tells the script loader to load the scripts and styles of custom block on site editor screen.
*
Expand Down

0 comments on commit 2d48c46

Please sign in to comment.