WordPress.org

Make WordPress Core

Changeset 15662


Ignore:
Timestamp:
09/26/10 09:16:38 (4 years ago)
Author:
nacin
Message:

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.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r15489 r15662  
    162162unset($title_class, $blog_name); 
    163163 
     164var_dump( $title ); 
     165 
    164166require(ABSPATH . 'wp-admin/menu-header.php'); 
     167 
     168var_dump( $title ); 
    165169 
    166170$current_screen->parent_file = $parent_file; 
     
    171175<div id="wpbody-content"> 
    172176<?php 
     177var_dump( $title ); 
    173178screen_meta($current_screen); 
     179 
     180var_dump( $title ); 
    174181 
    175182if ( is_multisite() ) { 
  • trunk/wp-admin/includes/template.php

    r15661 r15662  
    16361636 
    16371637function screen_meta($screen) { 
    1638     global $wp_meta_boxes, $_wp_contextual_help, $title, $wp_list_table; 
     1638    global $wp_meta_boxes, $_wp_contextual_help, $wp_list_table; 
    16391639 
    16401640    if ( is_string($screen) ) 
Note: See TracChangeset for help on using the changeset viewer.