[wp-trac] Re: [WordPress Trac] #4543: Future comments are displayed. They must not.

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 26 17:48:19 GMT 2007


#4543: Future comments are displayed. They must not.
--------------------------------------------------+-------------------------
 Reporter:  Coolkevman                            |        Owner:  anonymous  
     Type:  defect                                |       Status:  new        
 Priority:  normal                                |    Milestone:  2.3 (trunk)
Component:  General                               |      Version:  2.2.1      
 Severity:  normal                                |   Resolution:             
 Keywords:  comment, timestamp, date, time, edit  |  
--------------------------------------------------+-------------------------
Comment (by Coolkevman):

 Looks like it's a little bit more complicated...

 As explained in {{{comments_template()}}} code, this function must use
 standard WP API instead of raw SQL queries. I think "API" mean
 "{{{get_approved_comments()}}} function" from the {{{/wp-
 includes/comment.php}}} file.

 If I'm not wrong, the solution is then to modify the latter to filter on
 dates and rewrite {{{comments_template()}}} to use it instead of SQL
 queries.

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


More information about the wp-trac mailing list