WordPress.org

Make WordPress Core

Changeset 15666


Ignore:
Timestamp:
09/26/2010 10:02:23 AM (9 years ago)
Author:
dd32
Message:

Use the correct variable names, Fixes "Empty Spam" comments & "Approve" link. Add a clear to push "No comments found." into place. Fixes #14964

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r15642 r15666  
    1818    check_admin_referer( 'bulk-comments' );
    1919
    20     if ( 'delete_all' == $do_action && !empty( $_REQUEST['pagegen_timestamp'] ) ) {
     20    if ( 'delete_all' == $doaction && !empty( $_REQUEST['pagegen_timestamp'] ) ) {
    2121        $comment_status = $wpdb->escape( $_REQUEST['comment_status'] );
    2222        $delete_time = $wpdb->escape( $_REQUEST['pagegen_timestamp'] );
     
    3030    } else {
    3131        wp_redirect( wp_get_referer() );
     32        exit;
    3233    }
    3334
     
    218219<?php } ?>
    219220
     221<br class="clear" />
     222
    220223<?php if ( $wp_list_table->has_items() ) { ?>
    221224
  • trunk/wp-admin/includes/default-list-tables.php

    r15653 r15666  
    24412441                    $action .= ' hide-if-no-js';
    24422442                elseif ( ( $action == 'untrash' && $the_comment_status == 'trash' ) || ( $action == 'unspam' && $the_comment_status == 'spam' ) ) {
    2443                     if ( '1' == get_comment_meta( $comment_id, '_wp_trash_meta_status', true ) )
     2443                    if ( '1' == get_comment_meta( $comment->comment_ID, '_wp_trash_meta_status', true ) )
    24442444                        $action .= ' approve';
    24452445                    else
Note: See TracChangeset for help on using the changeset viewer.