And fix this variable. props ocean90.

git-svn-id: https://develop.svn.wordpress.org/trunk@18781 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-09-26 21:15:57 +00:00
parent d5dee542e5
commit 601a70fe8e
1 changed files with 1 additions and 1 deletions

View File

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