From 23770cb94e07f80aa14afff4514158764e3fa5fc Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 14 Jan 2008 00:20:52 +0000 Subject: [PATCH] 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 --- wp-admin/includes/post.php | 10 +++++++--- wp-includes/js/thickbox/thickbox.css | 4 ---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index ac0f8aadc..2c2819264 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -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'; + } } ?> diff --git a/wp-includes/js/thickbox/thickbox.css b/wp-includes/js/thickbox/thickbox.css index d24b9bedf..0552cc545 100644 --- a/wp-includes/js/thickbox/thickbox.css +++ b/wp-includes/js/thickbox/thickbox.css @@ -1,7 +1,3 @@ -/* ----------------------------------------------------------------------------------------------------------------*/ -/* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/ -/* ----------------------------------------------------------------------------------------------------------------*/ -*{padding: 0; margin: 0;} /* ----------------------------------------------------------------------------------------------------------------*/ /* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/