Make WordPress Core


Ignore:
Timestamp:
11/19/2006 07:56:05 AM (20 years ago)
Author:
ryan
Message:

Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986

File:
1 edited

Legend:

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

    r4480 r4495  
    3232        if ($feelinglucky && 'later' == $value)
    3333                $value = 'delete';
    34             switch($value) {
     34                switch($value) {
    3535                        case 'later':
    3636                                // do nothing with that comment
    … …  
    4242                                ++$item_deleted;
    4343                                break;
    44                         case 'spam':
    45                                 wp_set_comment_status($key, 'spam');
    46                                 ++$item_spam;
    47                                 break;
     44                        case 'spam':
     45                                wp_set_comment_status($key, 'spam');
     46                                ++$item_spam;
     47                                break;
    4848                        case 'approve':
    4949                                wp_set_comment_status($key, 'approve');
    … …  
    5353                                ++$item_approved;
    5454                                break;
    55             }
     55                }
    5656        }
    5757
    … …  
    8686                }
    8787        }
    88         if ($spam) {
    89                 if ('1' == $spam) {
     88        if ($spam) {
     89                if ('1' == $spam) {
    9090                        echo __("1 comment marked as spam") . " <br/>\n";
    91                 } else {
    92                         echo sprintf(__("%s comments marked as spam"), $spam) . " <br/>\n";
    93                 }
    94         }
     91                } else {
     92                        echo sprintf(__("%s comments marked as spam"), $spam) . " <br/>\n";
     93                }
     94        }
    9595        if ($ignored) {
    9696                if ('1' == $ignored) {
    … …  
    152152        </li>
    153153<?php
    154     }
    155 ?>
    156     </ol>
     154        }
     155?>
     156        </ol>
    157157
    158158<div id="ajax-response"></div>
    159159
    160     <p class="submit"><input type="submit" name="submit" value="<?php _e('Bulk Moderate Comments &raquo;') ?>" /></p>
     160<p class="submit"><input type="submit" name="submit" value="<?php _e('Bulk Moderate Comments &raquo;') ?>" /></p>
    161161<script type="text/javascript">
    162162// <![CDATA[
    … …  
    198198        </p>
    199199</noscript>
    200     </form>
     200</form>
    201201<?php
    202202} else {
    203     // nothing to approve
     203        // nothing to approve
    204204        echo '<p>'.__("Currently there are no comments for you to moderate.") . "</p>\n";
    205205}
Note: See TracChangeset for help on using the changeset viewer.