[wp-trac] [WordPress Trac] #35506: The global `$post` object for rows in the comments list table is polluted if `comment_post_ID` = 0

WordPress Trac noreply at wordpress.org
Mon Jan 18 02:49:42 UTC 2016


#35506: The global `$post` object for rows in the comments list table is polluted
if `comment_post_ID` = 0
--------------------------+-----------------------------
 Reporter:  rachelbaker   |       Owner:  rachelbaker
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.5
Component:  Comments      |     Version:  4.4
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------
Changes (by rachelbaker):

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


Comment:

 In [changeset:"36339"]:
 {{{
 #!CommitTicketReference repository="" revision="36339"
 List Tables: Use the $GLOBALS array when unsetting the global post and
 comment in `WP_Comments_List_Table::single_row()`.

 In r35674 only the local variables were unset, when using `unset()` with a
 global variable the `$GLOBALS` array must be used.


 Fixes #35506.
 }}}

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


More information about the wp-trac mailing list