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

WordPress Trac noreply at wordpress.org
Sun Jan 15 19:05:48 UTC 2017


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

Comment (by gitlost):

 Looking at [38647] none of the other `handle_bulk_actions` filters checks
 the return so perhaps it's best to leave it as is and just do the
 `isset()` check (which should be before the comment). Also I don't think
 it constitutes a change of behaviour as it always runs now - adding the
 check just saves one having to do something similar in the handler...

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


More information about the wp-trac mailing list