WordPress.org

Make WordPress Core

Changeset 51163


Ignore:
Timestamp:
06/15/2021 05:03:05 PM (4 months 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.

Location:
trunk/src/wp-admin
Files:
2 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;
  • trunk/src/wp-admin/upload.php

    r51161 r51163  
    120120if ( $doaction ) {
    121121    check_admin_referer( 'bulk-media' );
     122
    122123    $post_ids = array();
    123124
Note: See TracChangeset for help on using the changeset viewer.