Use correct variable. see #18690.
git-svn-id: https://develop.svn.wordpress.org/trunk@18780 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0b3d90ee53
commit
d5dee542e5
|
@ -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() ) {
|
||||
|
|
Loading…
Reference in New Issue