Make WordPress Core


Ignore:
Timestamp:
06/15/2021 05:03:05 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Quick/Bulk Edit: Ensure that $post_ids variable is initialized ahead of usage.

This brings some consistency between similar fragments of wp-admin/edit.php and wp-admin/upload.php.

Follow-up to [51111], [51161].

See #39589, #53411.

File:
1 edited

Legend:

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

    r50582 r51163  
    8080        $sendback = admin_url( $post_new_file );
    8181    }
     82
     83    $post_ids = array();
    8284
    8385    if ( 'delete_all' === $doaction ) {
     
    9799    }
    98100
    99     if ( ! isset( $post_ids ) ) {
     101    if ( empty( $post_ids ) ) {
    100102        wp_redirect( $sendback );
    101103        exit;
Note: See TracChangeset for help on using the changeset viewer.