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:
Matt Mullenweg 2008-01-14 00:20:52 +00:00
parent 8151a4a389
commit e4b2fa59dc
2 changed files with 7 additions and 7 deletions

View File

@ -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';
}
}
?>

View File

@ -1,7 +1,3 @@
/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/
*{padding: 0; margin: 0;}
/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/