[wp-trac] [WordPress Trac] #17928: When a comment is spammed/trashed, change the parent of it's children

WordPress Trac noreply at wordpress.org
Fri Sep 11 21:59:30 UTC 2015


#17928: When a comment is spammed/trashed, change the parent of it's children
--------------------------+-----------------------------
 Reporter:  Viper007Bond  |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.4
Component:  Comments      |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * milestone:  Future Release => 4.4


Comment:

 I think we need a Purgatory state.

 * Comment gets modded (trash or spam)
 * Everything below it in the hierarchy gets `comment_approved` set to
 `inherit-{modded_ID}` and its current value for `comment_approved` saved
 in meta as something
 * If modded gets restored or whatever, all comments with
 `inherit-{modded_ID}` return to their status which is saved in meta

 I may rig something up to demonstrate this. As long as queries are bound
 by some sort of value for `comment_approved`, this might work. Without the
 ID in the value, this would require a meta query, which I want nothing to
 do with.

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


More information about the wp-trac mailing list