Don't use deprecated functions. props koopersmith, fixes #13854.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
48c70855bb
commit
45ec93ad29
|
@ -3912,7 +3912,7 @@ function set_current_screen( $id = '' ) {
|
||||||
$id = sanitize_key($id);
|
$id = sanitize_key($id);
|
||||||
if ( false !== strpos($id, '-') ) {
|
if ( false !== strpos($id, '-') ) {
|
||||||
list( $id, $typenow ) = explode('-', $id, 2);
|
list( $id, $typenow ) = explode('-', $id, 2);
|
||||||
if ( is_taxonomy($typenow) ) {
|
if ( taxonomy_exists( $typenow ) ) {
|
||||||
$id = 'edit-tags';
|
$id = 'edit-tags';
|
||||||
$taxnow = $typenow;
|
$taxnow = $typenow;
|
||||||
$typenow = '';
|
$typenow = '';
|
||||||
|
|
Loading…
Reference in New Issue