WordPress.org

Make WordPress Core

Changeset 6678


Ignore:
Timestamp:
01/29/2008 04:43:20 PM (14 years ago)
Author:
ryan
Message:

Comment bubble count fix from nbachiyski. fixes #5694

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/edit-comments.js

    r6550 r6678  
    33
    44var dimAfter = function( r, settings ) {
    5     $('.comment-count').each( function() {
     5    $('.comment-count span').each( function() {
    66        var a = $(this);
    77        var n = parseInt(a.html(),10) + ( $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1 );
     
    1717
    1818var delAfter = function( r, settings ) {
    19     $('.comment-count').each( function() {
     19    $('.comment-count span').each( function() {
    2020        var a = $(this);
    2121        if ( a.parent('.current').size() || $('#' + settings.element).is('.unapproved') && parseInt(a.html(),10) > 0 ) {
  • trunk/wp-admin/menu.php

    r6661 r6678  
    3434$submenu['edit-comments.php'][5] = array(__('Comments'), 'edit_posts', 'edit-comments.php');
    3535$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');
    3737
    3838
Note: See TracChangeset for help on using the changeset viewer.