mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Set $parent_file for post-new.php when show_in_menu is a file. Provides for correct top-level highlighting. $submenu_file remains set to expect a post-new.php menu. see #19125.
git-svn-id: https://develop.svn.wordpress.org/trunk@19374 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -283,9 +283,9 @@ function remove_all_filters($tag, $priority = false) {
|
||||
|
||||
if( isset($wp_filter[$tag]) ) {
|
||||
if( false !== $priority && isset($wp_filter[$tag][$priority]) )
|
||||
unset($wp_filter[$tag][$priority]);
|
||||
$wp_filter[$tag][$priority] = array();
|
||||
else
|
||||
unset($wp_filter[$tag]);
|
||||
$wp_filter[$tag] = array();
|
||||
}
|
||||
|
||||
if( isset($merged_filters[$tag]) )
|
||||
|
||||
Reference in New Issue
Block a user