Make WordPress Core

Ticket #39589: 39589_b.patch

File 39589_b.patch, 633 bytes (added by achbed, 6 years ago)

Revised based on feedback

  • wp-admin/upload.php

     
    167167                        break;
    168168                default:
    169169                        /** This action is documented in wp-admin/edit-comments.php */
    170                         $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $doaction, $post_ids );
     170                        if ( ! isset( $post_ids ) ) {
     171                                $post_ids = array();
     172                        }
     173                        $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $doaction, (array) $post_ids );
    171174        }
    172175
    173176        wp_redirect( $location );