Have the bottom boxes be closed by default. Remove the global padding kill from thickbox CSS.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e0856a070f
commit
23770cb94e
|
@ -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…
Reference in New Issue