Make WordPress Core

Changeset 9905


Ignore:
Timestamp:
11/26/2008 06:53:59 PM (16 years ago)
Author:
ryan
Message:

Move Pending above Spam. fixes #8371

File:
1 edited

Legend:

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

    r9856 r9905  
    239239    echo '<td class="t cats">' . __ngettext( 'Category', 'Categories', $num_cats ) . '</td>';
    240240
     241    // Pending Comments
     242    $num = number_format_i18n($num_comm['awaiting_moderation']);
     243    if ( current_user_can( 'moderate_comments' ) )
     244        $num = "<a href='edit-comments.php?comment_status=moderated'><span class='pending-count'>$num</span></a>";
     245    echo '<td class="b b-waiting">'.$num.'</td>';
     246    echo '<td class="last t waiting">' . __ngettext( 'Pending', 'Pending', $num_comm['awaiting_moderation'] ) . '</td>';
     247
     248    echo "</tr>\n\t<tr>";
     249
     250    // Tags
     251    $num = number_format_i18n( $num_tags );
     252    if ( current_user_can( 'manage_categories' ) )
     253        $num = "<a href='edit-tags.php'>$num</a>";
     254    echo '<td class="first b b-tags">'.$num.'</td>';
     255    echo '<td class="t tags">' . __ngettext( 'Tag', 'Tags', $num_tags ) . '</td>';
     256
    241257    // Spam Comments
    242258    $num = number_format_i18n($num_comm['spam']);
     
    245261    echo '<td class="b b-spam">'.$num.'</td>';
    246262    echo '<td class="last t spam">' . __ngettext( 'Spam', 'Spam', $num_comm['spam'] ) . '</td>';
    247 
    248     echo "</tr>\n\t<tr>";
    249 
    250     // Tags
    251     $num = number_format_i18n( $num_tags );
    252     if ( current_user_can( 'manage_categories' ) )
    253         $num = "<a href='edit-tags.php'>$num</a>";
    254     echo '<td class="first b b-tags">'.$num.'</td>';
    255     echo '<td class="t tags">' . __ngettext( 'Tag', 'Tags', $num_tags ) . '</td>';
    256 
    257     // Pending Comments
    258     $num = number_format_i18n($num_comm['awaiting_moderation']);
    259     if ( current_user_can( 'moderate_comments' ) )
    260         $num = "<a href='edit-comments.php?comment_status=moderated'><span class='pending-count'>$num</span></a>";
    261     echo '<td class="b b-waiting">'.$num.'</td>';
    262     echo '<td class="last t waiting">' . __ngettext( 'Pending', 'Pending', $num_comm['awaiting_moderation'] ) . '</td>';
    263263
    264264    echo "</tr>";
Note: See TracChangeset for help on using the changeset viewer.