WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/10/2011 12:01:16 AM (9 years ago)
Author:
azaozz
Message:

Do not run bulk edit when the user clicks on a filter, fixes #17733

File:
1 edited

Legend:

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

    r17900 r18222  
    121121            break;
    122122        case 'edit':
    123             $done = bulk_edit_posts($_REQUEST);
    124 
    125             if ( is_array($done) ) {
    126                 $done['updated'] = count( $done['updated'] );
    127                 $done['skipped'] = count( $done['skipped'] );
    128                 $done['locked'] = count( $done['locked'] );
    129                 $sendback = add_query_arg( $done, $sendback );
     123            if ( isset($_REQUEST['bulk_edit']) ) {
     124                $done = bulk_edit_posts($_REQUEST);
     125
     126                if ( is_array($done) ) {
     127                    $done['updated'] = count( $done['updated'] );
     128                    $done['skipped'] = count( $done['skipped'] );
     129                    $done['locked'] = count( $done['locked'] );
     130                    $sendback = add_query_arg( $done, $sendback );
     131                }
    130132            }
    131133            break;
Note: See TracChangeset for help on using the changeset viewer.