WordPress.org

Make WordPress Core

Ticket #10910: 10910-phpDoc-typos-rename-suggestion.patch

File 10910-phpDoc-typos-rename-suggestion.patch, 1.5 KB (added by demetris, 5 years ago)

Two typos in the comment_form docs, and a rename suggestion

  • wp-includes/comment-template.php

     
    14701470/** 
    14711471 * Outputs a complete commenting form for use within a template. 
    14721472 * Most strings and form fields may be controlled through the $args array passed 
    1473  * into the function, while you may also choose to use the comments_form_default_fields 
     1473 * into the function, while you may also choose to use the comment_form_default_fields 
    14741474 * filter to modify the array of default fields if you'd just like to add a new 
    14751475 * one or remove a single field. All fields are also individually passed through 
    1476  * a filter of the form comments_form_field_$name where $name is the key used 
     1476 * a filter of the form comment_form_field_$name where $name is the key used 
    14771477 * in the array of fields. 
    14781478 * 
    14791479 * @since 3.0.0 
     
    15361536                                                <?php else : ?> 
    15371537                                                        <?php echo $args['comment_notes_before']; ?> 
    15381538                                                        <?php 
    1539                                                         do_action( 'comment_form_before_fields' ); 
     1539                                                        do_action( 'comment_form_fields_before' ); 
    15401540                                                        foreach ( (array) $args['fields'] as $name => $field ) { 
    15411541                                                                echo apply_filters( "comment_form_field_{$name}", $field ) . "\n"; 
    15421542                                                        } 
    1543                                                         do_action( 'comment_form_after_fields' ); 
     1543                                                        do_action( 'comment_form_fields_after' ); 
    15441544                                                        ?> 
    15451545                                                <?php endif; ?> 
    15461546                                                <?php echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); ?>