[wp-trac] [WordPress Trac] #44990: Unhandle post_ids variable in custom bulk actions

WordPress Trac noreply at wordpress.org
Tue Sep 25 08:59:43 UTC 2018


#44990: Unhandle post_ids variable in custom bulk actions
--------------------------+-----------------------------
 Reporter:  gaupoit       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.9.8
 Severity:  minor         |   Keywords:  dev-feedback
  Focuses:                |
--------------------------+-----------------------------
 This error happened when creating a custom bulk actions by using filter
 "handle_bulk_actions-" then user don't choose any items to apply that
 custom bulk action. The reason is in ~/wp-admin/upload.php line 170, the
 post_ids variable has never defined or handled.

 {{{#!php
 <?php
 default:
 /** This action is documented in wp-admin/edit-comments.php */
 $location = apply_filters( 'handle_bulk_actions-' .
 get_current_screen()->id, $location, $doaction, $post_ids );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44990>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list