Use correct variable. see #18690.

git-svn-id: http://svn.automattic.com/wordpress/trunk@18780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-09-26 21:11:46 +00:00
parent d417524b4a
commit 1a70603eb2
1 changed files with 3 additions and 3 deletions

View File

@ -2337,9 +2337,9 @@ class WP_Screen {
} }
function set_parentage( $parent_file ) { function set_parentage( $parent_file ) {
$current_screen->parent_file = $parent_file; $this->parent_file = $parent_file;
$current_screen->parent_base = preg_replace('/\?.*$/', '', $parent_file); $this->parent_base = preg_replace('/\?.*$/', '', $parent_file);
$current_screen->parent_base = str_replace('.php', '', $current_screen->parent_base); $this->parent_base = str_replace('.php', '', $current_screen->parent_base);
} }
function add_option( $option, $args = array() ) { function add_option( $option, $args = array() ) {