Make WordPress Core

Changeset 28916


Ignore:
Timestamp:
06/30/2014 01:09:25 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Prevent bulk actions from being performed when Filter button is clicked.

props jesin.
fixes #28555.

Location:
trunk/src/wp-admin/includes
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r28913 r28916  
    259259             */
    260260            do_action( 'restrict_manage_comments' );
    261             submit_button( __( 'Filter' ), 'button', false, false, array( 'id' => 'post-query-submit' ) );
     261            submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    262262        }
    263263
  • trunk/src/wp-admin/includes/class-wp-links-list-table.php

    r28493 r28916  
    7070            );
    7171            wp_dropdown_categories( $dropdown_options );
    72             submit_button( __( 'Filter' ), 'button', false, false, array( 'id' => 'post-query-submit' ) );
     72            submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    7373?>
    7474        </div>
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r28772 r28916  
    385385     */
    386386    public function current_action() {
     387        if ( isset( $_REQUEST['filter_action'] ) && ! empty( $_REQUEST['filter_action'] ) )
     388            return false;
     389
    387390        if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] )
    388391            return $_REQUEST['action'];
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r28843 r28916  
    9595            /** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */
    9696            do_action( 'restrict_manage_posts' );
    97             submit_button( __( 'Filter' ), 'button', false, false, array( 'id' => 'post-query-submit' ) );
     97            submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    9898        }
    9999
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r28876 r28916  
    234234            do_action( 'restrict_manage_posts' );
    235235
    236             submit_button( __( 'Filter' ), 'button', false, false, array( 'id' => 'post-query-submit' ) );
     236            submit_button( __( 'Filter' ), 'button', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
    237237        }
    238238
Note: See TracChangeset for help on using the changeset viewer.