Ticket #15015: 15015.3.diff
File 15015.3.diff, 1.9 KB (added by , 10 years ago) |
---|
-
src/wp-includes/comment-template.php
2230 2230 'title_reply_to' => __( 'Leave a Reply to %s' ), 2231 2231 'cancel_reply_link' => __( 'Cancel reply' ), 2232 2232 'label_submit' => __( 'Post Comment' ), 2233 'submit_button' => '<p class="form-submit"><input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" /></p>', 2233 2234 'format' => 'xhtml', 2234 2235 ); 2235 2236 … … 2344 2345 echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); 2345 2346 ?> 2346 2347 <?php echo $args['comment_notes_after']; ?> 2347 <p class="form-submit"> 2348 <input name="<?php echo esc_attr( $args['name_submit'] ); ?>" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" class="<?php echo esc_attr( $args['class_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" /> 2349 <?php comment_id_fields( $post_id ); ?> 2350 </p> 2348 2351 2349 <?php 2350 $args_submit_button = sprintf( 2351 $args['submit_button'], 2352 esc_attr( $args['name_submit'] ), 2353 esc_attr( $args['id_submit'] ), 2354 esc_attr( $args['class_submit'] ), 2355 esc_attr( $args['label_submit'] ) 2356 ); 2357 2352 2358 /** 2359 * Filter the submit button for the comment form for display. 2360 * 2361 * @since 4.2.0 2362 * 2363 * @param string $args_submit_button The HTML formatted output of the comment submit button. 2364 * @param array $args The comment form arguments. 2365 */ 2366 echo apply_filters( 'comment_form_submit_button', $args_submit_button, $args ); 2367 ?> 2368 <?php comment_id_fields( $post_id ); ?> 2369 <?php 2370 /** 2353 2371 * Fires at the bottom of the comment form, inside the closing </form> tag. 2354 2372 * 2355 2373 * @since 1.5.0