WordPress.org

Make WordPress Core

Ticket #16143: garyc40.16143.diff

File garyc40.16143.diff, 528 bytes (added by garyc40, 7 years ago)

did another round of check in admin-header.php, declare global variables in admin-header.php instead of inside functions

  • wp-admin/admin-header.php

    diff --git wp-admin/admin-header.php wp-admin/admin-header.php
    index ac79340..96d1807 100644
     
    1010if ( ! defined( 'WP_ADMIN' ) )
    1111        require_once( './admin.php' );
    1212
     13// in case admin-header.php is included in a function
     14global $title, $hook_suffix, $current_screen, $wp_locale, $pagenow, $is_iphone, $user_identity, $current_site, $update_title, $total_update_count, $parent_file;
     15
    1316get_admin_page_title();
    1417$title = esc_html( strip_tags( $title ) );
    1518