From 601a70fe8e8ac65da53244865da7655a9c906a5c Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 26 Sep 2011 21:15:57 +0000 Subject: [PATCH] And fix this variable. props ocean90. git-svn-id: https://develop.svn.wordpress.org/trunk@18781 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index dffecd2aac..2e89ce258a 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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() ) {