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:
parent
2258189f14
commit
dc7d0f1dff
|
@ -89,3 +89,7 @@ p.submit { /* quick edit and reply in edit-comments.php */
|
||||||
form#widgets-filter { /* fix widget page */
|
form#widgets-filter { /* fix widget page */
|
||||||
position: static;
|
position: static;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
* html .meta-box-sortables .postbox .handlediv {
|
||||||
|
background: transparent url(../images/menu-bits-rtl-vs.gif) no-repeat scroll right -111px;
|
||||||
|
}
|
||||||
|
|
|
@ -21,6 +21,14 @@ input.button-highlighted {
|
||||||
margin-bottom: -1px;
|
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 .inner-sidebar #side-sortables,
|
||||||
* html .postbox-container .meta-box-sortables {
|
* html .postbox-container .meta-box-sortables {
|
||||||
height: 300px;
|
height: 300px;
|
||||||
|
|
|
@ -125,11 +125,17 @@ setCommentsList = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateCount(el, n) {
|
function updateCount(el, n) {
|
||||||
|
var n1 = '';
|
||||||
if ( isNaN(n) )
|
if ( isNaN(n) )
|
||||||
return;
|
return;
|
||||||
n = n < 1 ? '0' : n.toString();
|
n = n < 1 ? '0' : n.toString();
|
||||||
if ( n.length > 3 )
|
if ( n.length > 3 ) {
|
||||||
n = n.substr(0, n.length-3) + thousandsSeparator + n.substr(-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);
|
el.html(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -777,7 +777,7 @@ function wp_count_comments( $post_id = 0 ) {
|
||||||
$known_types = array_keys( $approved );
|
$known_types = array_keys( $approved );
|
||||||
foreach( (array) $count as $row_num => $row ) {
|
foreach( (array) $count as $row_num => $row ) {
|
||||||
// Don't count post-trashed toward totals
|
// 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'];
|
$total += $row['num_comments'];
|
||||||
if ( in_array( $row['comment_approved'], $known_types ) )
|
if ( in_array( $row['comment_approved'], $known_types ) )
|
||||||
$stats[$approved[$row['comment_approved']]] = $row['num_comments'];
|
$stats[$approved[$row['comment_approved']]] = $row['num_comments'];
|
||||||
|
|
|
@ -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( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array('jquery'), '20090514' );
|
||||||
$scripts->add_data( 'user-profile', 'group', 1 );
|
$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->add_data( 'admin-comments', 'group', 1 );
|
||||||
$scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
|
$scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
|
||||||
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
||||||
|
|
Loading…
Reference in New Issue