Always show "Configure" links on dashboard widgets in IE6, fix "Right Now" comments counts, fixes #11129

git-svn-id: http://svn.automattic.com/wordpress/trunk@12183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-11-13 05:39:17 +00:00
parent 2258189f14
commit dc7d0f1dff
6 changed files with 23 additions and 5 deletions

View File

@ -89,3 +89,7 @@ p.submit { /* quick edit and reply in edit-comments.php */
form#widgets-filter { /* fix widget page */
position: static;
}
* html .meta-box-sortables .postbox .handlediv {
background: transparent url(../images/menu-bits-rtl-vs.gif) no-repeat scroll right -111px;
}

View File

@ -21,6 +21,14 @@ input.button-highlighted {
margin-bottom: -1px;
}
* html .meta-box-sortables .postbox .handlediv {
background: transparent url(../images/menu-bits-vs.gif) no-repeat scroll left -111px;
}
* html .edit-box {
display: inline;
}
* html .inner-sidebar #side-sortables,
* html .postbox-container .meta-box-sortables {
height: 300px;

View File

@ -125,11 +125,17 @@ setCommentsList = function() {
}
function updateCount(el, n) {
var n1 = '';
if ( isNaN(n) )
return;
n = n < 1 ? '0' : n.toString();
if ( n.length > 3 )
n = n.substr(0, n.length-3) + thousandsSeparator + n.substr(-3);
if ( n.length > 3 ) {
while ( n.length > 3 ) {
n1 = thousandsSeparator + n.substr(n.length - 3) + n1;
n = n.substr(0, n.length - 3);
}
n = n + n1;
}
el.html(n);
}

File diff suppressed because one or more lines are too long

View File

@ -777,7 +777,7 @@ function wp_count_comments( $post_id = 0 ) {
$known_types = array_keys( $approved );
foreach( (array) $count as $row_num => $row ) {
// Don't count post-trashed toward totals
if ( 'post-trashed' != $row['comment_approved'] )
if ( 'post-trashed' != $row['comment_approved'] && 'trash' != $row['comment_approved'] )
$total += $row['num_comments'];
if ( in_array( $row['comment_approved'], $known_types ) )
$stats[$approved[$row['comment_approved']]] = $row['num_comments'];

View File

@ -253,7 +253,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array('jquery'), '20090514' );
$scripts->add_data( 'user-profile', 'group', 1 );
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20091106' );
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20091112' );
$scripts->add_data( 'admin-comments', 'group', 1 );
$scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),