WordPress.org

Make WordPress Core

Ticket #39589: 39589_c.patch

File 39589_c.patch, 468 bytes (added by wpgurudev, 4 months ago)

Define variable

  • src/wp-admin/upload.php

    diff --git a/src/wp-admin/upload.php b/src/wp-admin/upload.php
    index b690d02506..d307453dc1 100644
    a b $doaction = $wp_list_table->current_action(); 
    119119
    120120if ( $doaction ) {
    121121        check_admin_referer( 'bulk-media' );
     122        $post_ids = array();
    122123
    123124        if ( 'delete_all' === $doaction ) {
    124125                $post_ids = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE post_type='attachment' AND post_status = 'trash'" );