mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Have the bottom boxes be closed by default. Remove the global padding kill from thickbox CSS.
git-svn-id: https://develop.svn.wordpress.org/trunk@6604 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -515,9 +515,13 @@ function wp_edit_posts_query( $q = false ) {
|
||||
|
||||
function postbox_classes( $id ) {
|
||||
$current_user = wp_get_current_user();
|
||||
$closed = get_usermeta( $current_user->ID, 'closedpostboxes' );
|
||||
if ( !is_array( $closed ) ) return '';
|
||||
return in_array( $id, $closed )? 'closed' : '';
|
||||
if ( $closed = get_usermeta( $current_user->ID, 'closedpostboxes' ) ) {
|
||||
if ( !is_array( $closed ) ) return '';
|
||||
return in_array( $id, $closed )? 'closed' : '';
|
||||
} else {
|
||||
if ( 'tagsdiv' == $id || 'categorydiv' == $id ) return '';
|
||||
else return 'closed';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user