[wp-trac] [WordPress Trac] #39589: PHP Notice if nothing selected on custom bulk action in Media Library.

WordPress Trac noreply at wordpress.org
Thu Jun 3 13:21:10 UTC 2021


#39589: PHP Notice if nothing selected on custom bulk action in Media Library.
-------------------------------------------------+-------------------------
 Reporter:  gitlost                              |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Media                                |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-docs has-testing-    |     Focuses:
  info                                           |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):

 * keywords:  has-patch needs-testing needs-docs has-testing-info => has-
     patch needs-docs has-testing-info


Comment:

 == Testing Result

 Env:
 - WP: 5.6.4, 5.7.2, and latest 5.8-alpha
 - PHP: 7.3 to 8.0
 - Browser: Chrome 91.0.4472.77 and Firefox 89.0
 - Localhost: Local
 - OS: MacOS
 - Web server: NGINX

 === Before Applying Patch
 Reproduced ✅

 Results in `debug.log`:

 {{{
 [03-Jun-2021 12:59:20 UTC] PHP Notice:  Undefined variable: post_ids in
 ../Local/wpcore/app/public/wp-admin/upload.php on line 204
 [03-Jun-2021 12:59:20 UTC] PHP Stack trace:
 [03-Jun-2021 12:59:20 UTC] PHP   1. {main}() ../Local/wpcore/app/public
 /wp-admin/upload.php:0
 }}}

 === After Applying the Patch

 Results: no PHP Notice ✅

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/39589#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list