Ticket #12564: comment_form_filter.diff
File comment_form_filter.diff, 871 bytes (added by , 15 years ago) |
---|
-
wp-includes/comment-template.php
1496 1496 'title_reply_to' => __( 'Leave a Reply to %s' ), 1497 1497 'cancel_reply_link' => __( 'Cancel reply' ), 1498 1498 'label_submit' => __( 'Post Comment' ), 1499 'echo' => true, 1499 1500 ); 1500 1501 $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); 1501 1502 1503 ob_start(); 1502 1504 ?> 1503 1505 <?php if ( comments_open() ) : ?> 1504 1506 <?php do_action( 'comment_form_before' ); ?> … … 1538 1540 <?php do_action( 'comment_form_comments_closed' ); ?> 1539 1541 <?php endif; ?> 1540 1542 <?php 1543 $form = apply_filters( 'comment_form_output', ob_get_clean(), $args); 1544 if ( $args['echo'] ) 1545 echo $form; 1546 else 1547 return $form; 1541 1548 } 1542 1549 1543 1550 ?>