[wp-trac] [WordPress Trac] #27018: pre_get_comments doesn't trigger when calling comments_template() for logged in users

WordPress Trac noreply at wordpress.org
Sun Feb 9 04:02:48 UTC 2014


#27018: pre_get_comments doesn't trigger when calling comments_template() for
logged in users
--------------------------+------------------------------
 Reporter:  flynsarmy     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Comments      |     Version:  3.8.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  template
--------------------------+------------------------------

Comment (by bcworkz):

 It appears the reason WP_Comment_Query is not used for logged in users (or
 not logged in users who made a comment) is the class does not support
 including unapproved comments from the current user. If this feature were
 supported, then WP_Comment_Query could be used for all conditions. This is
 addressed by the related [[ticket:19623|#19623]].

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


More information about the wp-trac mailing list