- 5BCB68D3A075D461B9B1EAE9921DF9D6E4BAEC9822C47C88B39845DA08B5E15F2A674851FBD2EFC744F6381BFF89DC9D619FFF0B13773A60396F904600D9DB04
+ 93D3197CF44DBC6057F7D85045439AA100E23AD988A332EE62935DA854D9E50241B8E811394EEEF665C59152F2C02F0AE934FF383963A7718C1991976A161996
mp-wp/wp-admin/edit-comments.php
(9 . 9)(9 . 6)
8759 /** WordPress Administration Bootstrap */
8760 require_once('admin.php');
8761
8762 wp_enqueue_script('admin-comments');
8763 enqueue_comment_hotkeys_js();
8764
8765 $post_id = isset($_REQUEST['p']) ? (int) $_REQUEST['p'] : 0;
8766
8767 if ( ( isset( $_REQUEST['delete_all_spam'] ) || isset( $_REQUEST['delete_all_spam2'] ) ) && !empty( $_REQUEST['pagegen_timestamp'] ) ) {
(24 . 9)(21 . 9)
8769 if ( $post_id )
8770 $redirect_to = add_query_arg( 'p', absint( $post_id ), $redirect_to );
8771 wp_redirect( $redirect_to );
8772 } elseif ( isset($_REQUEST['delete_comments']) && isset($_REQUEST['action']) && ( -1 != $_REQUEST['action'] || -1 != $_REQUEST['action2'] ) ) {
8773 } elseif ( isset($_REQUEST['delete_comments']) && isset($_REQUEST['action']) && -1 != $_REQUEST['action'] ) {
8774 check_admin_referer('bulk-comments');
8775 $doaction = ( -1 != $_REQUEST['action'] ) ? $_REQUEST['action'] : $_REQUEST['action2'];
8776 $doaction = $_REQUEST['action'];
8777
8778 $deleted = $approved = $unapproved = $spammed = 0;
8779 foreach ( (array) $_REQUEST['delete_comments'] as $comment_id) : // Check the permissions on each
(223 . 14)(220 . 14)
8781
8782 <div class="tablenav">
8783
8784 <?php if ( $page_links ) : ?>
8785 <?php if ( $page_links ) { ?>
8786 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
8787 number_format_i18n( $start + 1 ),
8788 number_format_i18n( min( $page * $comments_per_page, $total ) ),
8789 number_format_i18n( $total ),
8790 $page_links
8791 ); echo $page_links_text; ?></div>
8792 <?php endif; ?>
8793 <?php } ?>
8794
8795 <div class="alignleft actions">
8796 <select name="action">
(291 . 13)(288 . 6)
8798 <?php print_column_headers('edit-comments'); ?>
8799 </tr>
8800 </thead>
8801
8802 <tfoot>
8803 <tr>
8804 <?php print_column_headers('edit-comments', false); ?>
8805 </tr>
8806 </tfoot>
8807
8808 <tbody id="the-comment-list" class="list:comment">
8809 <?php
8810 foreach ($comments as $comment)
(312 . 36)(302 . 16)
8812 </tbody>
8813 </table>
8814
8815 <?php if ( $page_links ) { ?>
8816 <div class="tablenav">
8817 <?php
8818 if ( $page_links )
8819 echo "<div class='tablenav-pages'>$page_links_text</div>";
8820 ?>
8821
8822 <div class="alignleft actions">
8823 <select name="action2">
8824 <option value="-1" selected="selected"><?php _e('Bulk Actions') ?></option>
8825 <?php if ( empty($comment_status) || 'approved' == $comment_status ): ?>
8826 <option value="unapprove"><?php _e('Unapprove'); ?></option>
8827 <?php endif; ?>
8828 <?php if ( empty($comment_status) || 'moderated' == $comment_status ): ?>
8829 <option value="approve"><?php _e('Approve'); ?></option>
8830 <?php endif; ?>
8831 <?php if ( 'spam' != $comment_status ): ?>
8832 <option value="markspam"><?php _e('Mark as Spam'); ?></option>
8833 <?php endif; ?>
8834 <option value="delete"><?php _e('Delete'); ?></option>
8835 </select>
8836 <input type="submit" name="doaction2" id="doaction2" value="<?php _e('Apply'); ?>" class="button-secondary apply" />
8837
8838 <?php if ( 'spam' == $comment_status ) { ?>
8839 <input type="submit" name="delete_all_spam2" value="<?php _e('Delete All Spam'); ?>" class="button-secondary apply" />
8840 <?php } ?>
8841 <?php do_action('manage_comments_nav', $comment_status); ?>
8842 </div>
8843
8844 <br class="clear" />
8845 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
8846 number_format_i18n( $start + 1 ),
8847 number_format_i18n( min( $page * $comments_per_page, $total ) ),
8848 number_format_i18n( $total ),
8849 $page_links
8850 ); echo $page_links_text; ?></div>
8851 </div>
8852 <?php } ?>
8853
8854 </form>
8855
(352 . 37)(322 . 20)
8857 <input type="hidden" name="page" value="<?php echo isset($_REQUEST['page']) ? absint( $_REQUEST['page'] ) : 1; ?>" />
8858 <input type="hidden" name="p" value="<?php echo attribute_escape( $post_id ); ?>" />
8859 <input type="hidden" name="comment_type" value="<?php echo attribute_escape( $comment_type ); ?>" />
8860 <?php wp_nonce_field( 'add-comment', '_ajax_nonce', false ); ?>
8861 </form>
8862
8863 <div id="ajax-response"></div>
8864
8865 <?php } elseif ( 'moderated' == $_GET['comment_status'] ) { ?>
8866 <p><?php _e('No comments awaiting moderation… yet.') ?></p>
8867 </form>
8868
8869 <?php } else { ?>
8870 <p><?php _e('No results found.') ?></p>
8871
8872 </form>
8873
8874 <?php } ?>
8875 </div>
8876
8877 <script type="text/javascript">
8878 /* <![CDATA[ */
8879 (function($){
8880 $(document).ready(function(){
8881 $('#doaction, #doaction2').click(function(){
8882 if ( $('select[name^="action"]').val() == 'delete' ) {
8883 var m = '<?php echo js_escape(__("You are about to delete the selected comments.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
8884 return showNotice.warn(m);
8885 }
8886 });
8887 });
8888 })(jQuery);
8889 /* ]]> */
8890 </script>
8891
8892 <?php
8893 wp_comment_reply('-1', true, 'detail');
8894 include('admin-footer.php'); ?>