mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Make admin screen titles filterable. Props caesarsgrunt. Fixes #15301
git-svn-id: http://svn.automattic.com/wordpress/trunk@16260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e9952075ee
commit
4b260b3d0f
@ -11,9 +11,11 @@ if ( ! defined( 'WP_ADMIN' ) )
|
||||
require_once( './admin.php' );
|
||||
|
||||
get_admin_page_title();
|
||||
|
||||
$title = esc_html( strip_tags( $title ) );
|
||||
|
||||
$admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, get_bloginfo( 'name' ) );
|
||||
$admin_title = apply_filters( 'admin_title', $admin_title, $title );
|
||||
|
||||
wp_user_settings();
|
||||
wp_menu_unfold();
|
||||
|
||||
@ -30,7 +32,7 @@ if ( is_multisite() && !is_network_admin() && is_super_admin() ) {
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
|
||||
<title><?php echo $title; ?> ‹ <?php bloginfo('name') ?> — WordPress</title>
|
||||
<title><?php echo $admin_title; ?></title>
|
||||
<?php
|
||||
|
||||
wp_admin_css( 'global' );
|
||||
|
Loading…
Reference in New Issue
Block a user