[wp-trac] [WordPress Trac] #20487: Comment administration doesn't scale - Proposing significant change change

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 19 01:08:16 UTC 2012


#20487: Comment administration doesn't scale - Proposing significant change change
-------------------------+------------------------------
 Reporter:  brokentone   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Comments     |     Version:  3.2.1
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+------------------------------
Changes (by scribu):

 * keywords:   => needs-patch


Comment:

 > Waxing philosophical, as posts, comments, and users are the three basic
 types of data to be stored and displayed in WP, one would expect them to
 have similar interfaces and functionality. [...] For this reason I don't
 understand why each of their functionality isn't derived from something
 like an abstract class or an interface.

 There was such an attempt: #15032

 At this point, I think we'll have to settle with an abstraction class ''on
 top of'' these existing objects.

 > there are no hooks activated in this process for plugins to use to say
 create an advanced comment search plugin. One might expect hooks like
 those activated in post search to be activated here, like "parse_request"
 and "get_search_query."

 Actually, there are a few: 'pre_get_comments', 'comment_clauses' and
 'get_comments'.

 And I think adding one specifically for the search SQL should offer enough
 flexibility for most use-cases.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20487#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list