Prevent the $title global from being stomped. Caused by merger of manage_columns_prefs() into screen_meta() in [15653]. see #14952, see #14776. The global is apparent cruft as the function doesn't use it.

git-svn-id: https://develop.svn.wordpress.org/trunk@15662 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-09-26 09:16:38 +00:00
parent 6aea75f676
commit 7639bd04c7
2 changed files with 8 additions and 1 deletions

View File

@ -161,8 +161,12 @@ echo implode(' ', $links);
<?php
unset($title_class, $blog_name);
var_dump( $title );
require(ABSPATH . 'wp-admin/menu-header.php');
var_dump( $title );
$current_screen->parent_file = $parent_file;
$current_screen->parent_base = preg_replace('/\?.*$/', '', $parent_file);
$current_screen->parent_base = str_replace('.php', '', $current_screen->parent_base);
@ -170,8 +174,11 @@ $current_screen->parent_base = str_replace('.php', '', $current_screen->parent_b
<div id="wpbody-content">
<?php
var_dump( $title );
screen_meta($current_screen);
var_dump( $title );
if ( is_multisite() ) {
if ( is_network_admin() )
do_action('network_admin_notices');

View File

@ -1635,7 +1635,7 @@ function convert_to_screen( $screen ) {
}
function screen_meta($screen) {
global $wp_meta_boxes, $_wp_contextual_help, $title, $wp_list_table;
global $wp_meta_boxes, $_wp_contextual_help, $wp_list_table;
if ( is_string($screen) )
$screen = convert_to_screen($screen);