mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Prevent the Slug metabox from being forever hidden when showing all metaboxes. Fixes #12088
git-svn-id: https://develop.svn.wordpress.org/trunk@14065 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2967,12 +2967,11 @@ function get_hidden_meta_boxes($screen) {
|
||||
if ( is_string($screen) )
|
||||
$screen = convert_to_screen($screen);
|
||||
|
||||
$hidden = (array) get_user_option( "meta-box-hidden_$screen->id" );
|
||||
$hidden = get_user_option( "meta-box-hidden_$screen->id" );
|
||||
|
||||
// Hide slug boxes by default
|
||||
if ( empty($hidden[0]) ) {
|
||||
if ( !is_array($hidden) )
|
||||
$hidden = array('slugdiv');
|
||||
}
|
||||
|
||||
return $hidden;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user