From d5dee542e57f192c344a4aff3cb002b464f1130e Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 26 Sep 2011 21:11:46 +0000 Subject: [PATCH] Use correct variable. see #18690. git-svn-id: https://develop.svn.wordpress.org/trunk@18780 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 2b2c3f729e..dffecd2aac 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2337,9 +2337,9 @@ class WP_Screen { } function set_parentage( $parent_file ) { - $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); + $this->parent_file = $parent_file; + $this->parent_base = preg_replace('/\?.*$/', '', $parent_file); + $this->parent_base = str_replace('.php', '', $current_screen->parent_base); } function add_option( $option, $args = array() ) {