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

WordPress Trac noreply at wordpress.org
Thu Jan 26 16:15:30 UTC 2023


#44990: Unhandle post_ids variable in custom bulk actions
-------------------------------------+------------------------------
 Reporter:  gaupoit                  |       Owner:  (none)
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Quick/Bulk Edit          |     Version:  4.9.8
 Severity:  minor                    |  Resolution:  fixed
 Keywords:  reporter-feedback close  |     Focuses:
-------------------------------------+------------------------------
Changes (by hellofromTonya):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Re-reading the ticket and specifically @gaupoit [comment:2 comment here]:
 >Thanks, @garrett-eclipse for the reply. I also added the checking for
 $post_ids you mentioned in my custom code. However, the problem is here
 https://github.com/WordPress/WordPress/blob/4.9.8/wp-admin/upload.php#L170
 the variable $post_ids is never handled.

 I agree with @davidbaumwald that [51111] should have resolved the reported
 issue. Why? It initialized `$post_ids` to an empty array before the code
 goes into the `switch()` of where @gaupoit noted the issue.

 I think this ticket can be marked as fixed (by #39589 / [51111]). Given
 that it's been 10 months with no reporter feedback, thinking it's safe to
 close the ticket as resolved.

 If however this problem persists, @gaupoit please reopen the ticket and
 provide more information to help contributors further investigate.

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


More information about the wp-trac mailing list