WordPress.org

Make WordPress Core

Changeset 16260


Ignore:
Timestamp:
11/09/10 18:03:06 (7 years ago)
Author:
scribu
Message:

Make admin screen titles filterable. Props caesarsgrunt. Fixes #15301

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r16224 r16260  
    1212 
    1313get_admin_page_title(); 
     14$title = esc_html( strip_tags( $title ) ); 
    1415 
    15 $title = esc_html( strip_tags( $title ) ); 
     16$admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, get_bloginfo( 'name' ) ); 
     17$admin_title = apply_filters( 'admin_title', $admin_title, $title ); 
    1618 
    1719wp_user_settings(); 
     
    3133<head> 
    3234<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 
    33 <title><?php echo $title; ?> &lsaquo; <?php bloginfo('name') ?>  &#8212; WordPress</title> 
     35<title><?php echo $admin_title; ?></title> 
    3436<?php 
    3537 
Note: See TracChangeset for help on using the changeset viewer.