Fix comment_notes_before. Props mrmist. fixes #14510

git-svn-id: http://svn.automattic.com/wordpress/trunk@16649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-12-01 16:52:32 +00:00
parent b7d3ba8db8
commit a031db170f
1 changed files with 2 additions and 1 deletions

View File

@ -1556,11 +1556,12 @@ function comment_form( $args = array(), $post_id = null ) {
<?php else : ?> <?php else : ?>
<form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>"> <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>">
<?php do_action( 'comment_form_top' ); ?> <?php do_action( 'comment_form_top' ); ?>
<?php echo $args['comment_notes_before']; ?>
<?php if ( is_user_logged_in() ) : ?> <?php if ( is_user_logged_in() ) : ?>
<?php echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity ); ?> <?php echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity ); ?>
<?php do_action( 'comment_form_logged_in_after', $commenter, $user_identity ); ?> <?php do_action( 'comment_form_logged_in_after', $commenter, $user_identity ); ?>
<?php else : ?> <?php else : ?>
<?php echo $args['comment_notes_before']; ?>
<?php <?php
do_action( 'comment_form_before_fields' ); do_action( 'comment_form_before_fields' );
foreach ( (array) $args['fields'] as $name => $field ) { foreach ( (array) $args['fields'] as $name => $field ) {