Changeset 6678
- Timestamp:
- 01/29/2008 04:43:20 PM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/edit-comments.js
r6550 r6678 3 3 4 4 var dimAfter = function( r, settings ) { 5 $('.comment-count ').each( function() {5 $('.comment-count span').each( function() { 6 6 var a = $(this); 7 7 var n = parseInt(a.html(),10) + ( $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1 ); … … 17 17 18 18 var delAfter = function( r, settings ) { 19 $('.comment-count ').each( function() {19 $('.comment-count span').each( function() { 20 20 var a = $(this); 21 21 if ( a.parent('.current').size() || $('#' + settings.element).is('.unapproved') && parseInt(a.html(),10) > 0 ) { -
trunk/wp-admin/menu.php
r6661 r6678 34 34 $submenu['edit-comments.php'][5] = array(__('Comments'), 'edit_posts', 'edit-comments.php'); 35 35 $awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'"); 36 $submenu['edit-comments.php'][25] = array(sprintf(__("Awaiting Moderation (%s)"), "<span id='awaitmod' class='comment-count'> $awaiting_mod</span>"), 'edit_posts', 'moderation.php');36 $submenu['edit-comments.php'][25] = array(sprintf(__("Awaiting Moderation (%s)"), "<span id='awaitmod' class='comment-count'><span>$awaiting_mod</span></span>"), 'edit_posts', 'moderation.php'); 37 37 38 38
Note: See TracChangeset
for help on using the changeset viewer.