Make WordPress Core


Ignore:
Timestamp:
04/21/2006 04:54:01 AM (18 years ago)
Author:
ryan
Message:

Change number of comments awaiting moderation in menu when number changes. Props mdawaffe. fixes #2677

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r3570 r3733  
    2626$submenu['edit.php'][20] = array(__('Comments'), 'edit_posts', 'edit-comments.php');
    2727$awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");
    28 $submenu['edit.php'][25] = array(sprintf(__("Awaiting Moderation (%s)"), $awaiting_mod), 'edit_posts', 'moderation.php');
     28$submenu['edit.php'][25] = array(sprintf(__("Awaiting Moderation (%s)"), "<span id='awaitmod'>$awaiting_mod</span>"), 'edit_posts', 'moderation.php');
    2929$submenu['edit.php'][30] = array(__('Files'), 'edit_files', 'templates.php');
    3030
Note: See TracChangeset for help on using the changeset viewer.