Ticket #15015: 15015.4.diff
File 15015.4.diff, 1.8 KB (added by , 10 years ago) |
---|
-
src/wp-includes/comment-template.php
2236 2236 'title_reply_to' => __( 'Leave a Reply to %s' ), 2237 2237 'cancel_reply_link' => __( 'Cancel reply' ), 2238 2238 'label_submit' => __( 'Post Comment' ), 2239 'submit_button' => '<input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" />', 2239 2240 'format' => 'xhtml', 2240 2241 ); 2241 2242 … … 2350 2351 echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); 2351 2352 ?> 2352 2353 <?php echo $args['comment_notes_after']; ?> 2354 2355 <?php 2356 $args_submit_button = sprintf( 2357 $args['submit_button'], 2358 esc_attr( $args['name_submit'] ), 2359 esc_attr( $args['id_submit'] ), 2360 esc_attr( $args['class_submit'] ), 2361 esc_attr( $args['label_submit'] ) 2362 ); 2363 2353 2364 <p class="form-submit"> 2354 <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'] ); ?>" /> 2365 /** 2366 * Filter the submit button for the comment form for display. 2367 * 2368 * @since 4.2.0 2369 * 2370 * @param string $args_submit_button The HTML formatted output of the comment submit button. 2371 * @param array $args The comment form arguments. 2372 */ 2373 echo apply_filters( 'comment_form_submit_button', $args_submit_button, $args ); 2374 ?> 2355 2375 <?php comment_id_fields( $post_id ); ?> 2356 2376 </p> 2377 2357 2378 <?php 2358 2379 /** 2359 2380 * Fires at the bottom of the comment form, inside the closing </form> tag.