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:
matt 2008-01-14 00:20:52 +00:00
parent e0856a070f
commit 23770cb94e
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 <<<------------------------------------------------------*/