mirror of
git://develop.git.wordpress.org/
synced 2025-02-11 18:41:37 +01: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:
parent
8151a4a389
commit
e4b2fa59dc
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -1,7 +1,3 @@
|
||||
/* ----------------------------------------------------------------------------------------------------------------*/
|
||||
/* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/
|
||||
/* ----------------------------------------------------------------------------------------------------------------*/
|
||||
*{padding: 0; margin: 0;}
|
||||
|
||||
/* ----------------------------------------------------------------------------------------------------------------*/
|
||||
/* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user