Set the screen for add-tag ajax requests. see #13783
git-svn-id: http://svn.automattic.com/wordpress/trunk@15178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -3909,8 +3909,15 @@ function set_current_screen( $id = '' ) {
|
||||
$current_screen = str_replace('-add', '', $current_screen);
|
||||
$current_screen = array('id' => $current_screen, 'base' => $current_screen);
|
||||
} else {
|
||||
if ( false !== strpos($id, '-') )
|
||||
$id = sanitize_key($id);
|
||||
if ( false !== strpos($id, '-') ) {
|
||||
list( $id, $typenow ) = explode('-', $id, 2);
|
||||
if ( is_taxonomy($typenow) ) {
|
||||
$id = 'edit-tags';
|
||||
$taxnow = $typenow;
|
||||
$typenow = '';
|
||||
}
|
||||
}
|
||||
$current_screen = array('id' => $id, 'base' => $id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user