Make WordPress Core


Ignore:
Timestamp:
02/25/2008 12:28:21 AM (18 years ago)
Author:
ryan
Message:

Manage comments styling from mt. fixes #5985

File:
1 edited

Legend:

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

    r7010 r7011  
    5353    $comment_status = '';
    5454?>
    55 
     55<?php
     56if ( isset( $_GET['approved'] ) || isset( $_GET['deleted'] ) || isset( $_GET['spam'] ) ) {
     57    $approved = isset( $_GET['approved'] ) ? (int) $_GET['approved'] : 0;
     58    $deleted = isset( $_GET['deleted'] ) ? (int) $_GET['deleted'] : 0;
     59    $spam = isset( $_GET['spam'] ) ? (int) $_GET['spam'] : 0;
     60
     61    if ( $approved > 0 || $deleted > 0 || $spam > 0 ) {
     62        echo '<div id="moderated" class="updated fade"><p>';
     63
     64        if ( $approved > 0 ) {
     65            printf( __ngettext( '%s comment approved', '%s comments approved', $approved ), $approved );
     66            echo '<br />';
     67        }
     68
     69        if ( $deleted > 0 ) {
     70            printf( __ngettext( '%s comment deleted', '%s comments deleted', $deleted ), $deleted );
     71            echo '<br />';
     72        }
     73
     74        if ( $spam > 0 ) {
     75            printf( __ngettext( '%s comment marked as spam', '%s comments marked as spam', $spam ), $spam );
     76            echo '<br />';
     77        }
     78
     79        echo '</p></div>';
     80    }
     81}
     82?>
    5683<div class="wrap">
    5784<form id="posts-filter" action="" method="get">
     
    77104?>
    78105</ul>
    79 
    80 <?php
    81 if ( isset( $_GET['approved'] ) || isset( $_GET['deleted'] ) || isset( $_GET['spam'] ) ) {
    82     $approved = isset( $_GET['approved'] ) ? (int) $_GET['approved'] : 0;
    83     $deleted = isset( $_GET['deleted'] ) ? (int) $_GET['deleted'] : 0;
    84     $spam = isset( $_GET['spam'] ) ? (int) $_GET['spam'] : 0;
    85 
    86     if ( $approved > 0 || $deleted > 0 || $spam > 0 ) {
    87         echo '<div id="moderated" class="updated fade"><p>';
    88 
    89         if ( $approved > 0 ) {
    90             printf( __ngettext( '%s comment approved', '%s comments approved', $approved ), $approved );
    91             echo '<br />';
    92         }
    93 
    94         if ( $deleted > 0 ) {
    95             printf( __ngettext( '%s comment deleted', '%s comments deleted', $deleted ), $deleted );
    96             echo '<br />';
    97         }
    98 
    99         if ( $spam > 0 ) {
    100             printf( __ngettext( '%s comment marked as spam', '%s comments marked as spam', $spam ), $spam );
    101             echo '<br />';
    102         }
    103 
    104         echo '</p></div>';
    105     }
    106 }
    107 ?>
    108106
    109107<p id="post-search">
Note: See TracChangeset for help on using the changeset viewer.