Make WordPress Core


Ignore:
Timestamp:
10/09/2009 09:02:22 AM (16 years ago)
Author:
azaozz
Message:

Add l10n thousands delimiter and decimal point to JS, fix updating of comments numbers on the dashboard and keyboard shortcuts for comments moderation (t = trash, z = restore/undo)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r12008 r12015  
    237237
    238238    // Total Comments
    239     $num = number_format_i18n($num_comm->total_comments);
     239    $num = '<span class="total-count">' . number_format_i18n($num_comm->total_comments) . '</span>';
    240240    $text = _n( 'Comment', 'Comments', $num_comm->total_comments );
    241241    if ( current_user_can( 'moderate_comments' ) ) {
     
    259259
    260260    // Approved Comments
    261     $num = number_format_i18n($num_comm->approved);
     261    $num = '<span class="approved-count">' . number_format_i18n($num_comm->approved) . '</span>';
    262262    $text = _nc( 'Approved|Right Now', 'Approved', $num_comm->approved );
    263263    if ( current_user_can( 'moderate_comments' ) ) {
     
    281281
    282282    // Pending Comments
    283     $num = number_format_i18n($num_comm->moderated);
     283    $num = '<span class="pending-count">' . number_format_i18n($num_comm->moderated) . '</span>';
    284284    $text = _n( 'Pending', 'Pending', $num_comm->moderated );
    285285    if ( current_user_can( 'moderate_comments' ) ) {
    286         $num = "<a href='edit-comments.php?comment_status=moderated'><span class='pending-count'>$num</span></a>";
     286        $num = "<a href='edit-comments.php?comment_status=moderated'>$num</a>";
    287287        $text = "<a class='waiting' href='edit-comments.php?comment_status=moderated'>$text</a>";
    288288    }
Note: See TracChangeset for help on using the changeset viewer.