Make WordPress Core

Ticket #11114: edit-comments.php.2.diff

File edit-comments.php.2.diff, 1.1 KB (added by scribu, 15 years ago)

Search should still use GET method

  • wp-admin/edit-comments.php

     
    149149}
    150150?>
    151151
    152 <form id="comments-form" action="" method="get">
    153152<ul class="subsubsub">
    154153<?php
    155154$status_links = array();
     
    199198?>
    200199</ul>
    201200
     201<form id="comments-search-form" action="" method="get">
    202202<p class="search-box">
    203203        <label class="screen-reader-text" for="comment-search-input"><?php _e( 'Search Comments' ); ?>:</label>
    204204        <input type="text" id="comment-search-input" name="s" value="<?php _admin_search_query(); ?>" />
    205205        <input type="submit" value="<?php esc_attr_e( 'Search Comments' ); ?>" class="button" />
    206206</p>
     207</form>
    207208
    208209<?php
    209210$comments_per_page = get_user_option('edit_comments_per_page');
     
    243244));
    244245
    245246?>
    246 
     247<form id="comments-form" action="" method="post">
    247248<input type="hidden" name="mode" value="<?php echo esc_attr($mode); ?>" />
    248249<?php if ( $post_id ) : ?>
    249250<input type="hidden" name="p" value="<?php echo esc_attr( intval( $post_id ) ); ?>" />