[wp-trac] [WordPress Trac] #14510: comment_notes_before does not work.

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 3 12:06:06 UTC 2010


#14510: comment_notes_before does not work.
-------------------------+--------------------------------------------------
 Reporter:  hotforwords  |        Owner:                
     Type:  enhancement  |       Status:  reopened      
 Priority:  normal       |    Milestone:  Future Release
Component:  Comments     |      Version:  3.0.1         
 Severity:  normal       |   Resolution:                
 Keywords:  needs-patch  |  
-------------------------+--------------------------------------------------

Comment(by demetris):

 I see.

 But now I have another question.  Does P2 use comment_form() in an optimal
 way?  Why not do something like the following?

 First:

 {{{
 function p2_comment_form_defaults($args)
 {
     $args['comment_notes_after']    = '';
     $args['comment_notes_before']   = '<p>' . __('Blah blah') . '</p>';
     # Etc. etc.

     return $args;
 }
 }}}

 Then:

 {{{
 add_filter('comment_form_defaults', 'p2_comment_form_defaults');
 }}}

 And then simply:

 {{{
 comment_form();
 }}}

 This is a genuine question, not a rhetorical one. :-)

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


More information about the wp-trac mailing list