mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 10:22:23 +01:00
Use get_current_screen() rather than a $current_screen global reference. Remove unused global reference. see #14886.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7ed04cc2f3
commit
f6368c50c4
@ -463,7 +463,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function single_row( $a_post, $level = 0 ) {
|
function single_row( $a_post, $level = 0 ) {
|
||||||
global $post, $current_screen, $mode;
|
global $post, $mode;
|
||||||
static $alternate;
|
static $alternate;
|
||||||
|
|
||||||
$global_post = $post;
|
$global_post = $post;
|
||||||
|
@ -1370,9 +1370,11 @@ function _admin_search_query() {
|
|||||||
*/
|
*/
|
||||||
function iframe_header( $title = '', $limit_styles = false ) {
|
function iframe_header( $title = '', $limit_styles = false ) {
|
||||||
show_admin_bar( false );
|
show_admin_bar( false );
|
||||||
global $hook_suffix, $current_screen, $current_user, $admin_body_class, $wp_locale;
|
global $hook_suffix, $current_user, $admin_body_class, $wp_locale;
|
||||||
$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
|
$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
|
||||||
|
|
||||||
|
$current_screen = get_current_screen();
|
||||||
|
|
||||||
_wp_admin_html_begin();
|
_wp_admin_html_begin();
|
||||||
?>
|
?>
|
||||||
<title><?php bloginfo('name') ?> › <?php echo $title ?> — <?php _e('WordPress'); ?></title>
|
<title><?php bloginfo('name') ?> › <?php echo $title ?> — <?php _e('WordPress'); ?></title>
|
||||||
|
Loading…
Reference in New Issue
Block a user