And fix this variable. props ocean90.

git-svn-id: http://svn.automattic.com/wordpress/trunk@18781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-09-26 21:15:57 +00:00
parent 1a70603eb2
commit 95087c5947

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() ) {