Ticket #15015: 15015.2.diff
File 15015.2.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 2352 2350 /** 2351 * Filter the submit button for the comment form for display. 2352 * 2353 * @since 4.2 2354 * 2355 * @param string $args_submit_button The HTML formatted output of the comment submit button. 2356 * @param array $args The comment form arguments. 2357 */ 2358 echo apply_filters( 2359 'comment_form_submit_button', 2360 sprintf( 2361 $args['submit_button'], 2362 esc_attr( $args['name_submit'] ), 2363 esc_attr( $args['id_submit'] ), 2364 esc_attr( $args['class_submit'] ), 2365 esc_attr( $args['label_submit'] ) 2366 ), 2367 $args 2368 ); ?> 2369 <?php comment_id_fields( $post_id ); ?> 2370 <?php 2371 /** 2353 2372 * Fires at the bottom of the comment form, inside the closing </form> tag. 2354 2373 * 2355 2374 * @since 1.5.0