Changeset 4495 for trunk/wp-admin/moderation.php
- Timestamp:
- 11/19/2006 07:56:05 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/moderation.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/moderation.php
r4480 r4495 32 32 if ($feelinglucky && 'later' == $value) 33 33 $value = 'delete'; 34 switch($value) {34 switch($value) { 35 35 case 'later': 36 36 // do nothing with that comment … … 42 42 ++$item_deleted; 43 43 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; 48 48 case 'approve': 49 49 wp_set_comment_status($key, 'approve'); … … 53 53 ++$item_approved; 54 54 break; 55 }55 } 56 56 } 57 57 … … 86 86 } 87 87 } 88 if ($spam) {89 if ('1' == $spam) {88 if ($spam) { 89 if ('1' == $spam) { 90 90 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 } 95 95 if ($ignored) { 96 96 if ('1' == $ignored) { … … 152 152 </li> 153 153 <?php 154 }155 ?> 156 </ol>154 } 155 ?> 156 </ol> 157 157 158 158 <div id="ajax-response"></div> 159 159 160 <p class="submit"><input type="submit" name="submit" value="<?php _e('Bulk Moderate Comments »') ?>" /></p>160 <p class="submit"><input type="submit" name="submit" value="<?php _e('Bulk Moderate Comments »') ?>" /></p> 161 161 <script type="text/javascript"> 162 162 // <![CDATA[ … … 198 198 </p> 199 199 </noscript> 200 </form>200 </form> 201 201 <?php 202 202 } else { 203 // nothing to approve203 // nothing to approve 204 204 echo '<p>'.__("Currently there are no comments for you to moderate.") . "</p>\n"; 205 205 }
Note: See TracChangeset
for help on using the changeset viewer.