Make WordPress Core

Ticket #51175: 51175.1.diff

File 51175.1.diff, 917 bytes (added by audrasjb, 4 years ago)

Comments: Return false to $link_to_parent parameter by default in comment_form_title() to avoid double title edge cases

  • src/wp-includes/comment-template.php

    diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php
    index d3417db02b..2bcf21849b 100644
    a b function comment_id_fields( $post_id = 0 ) { 
    19671967 *                               Default false. Accepts "%s" for the author of the comment
    19681968 *                               being replied to.
    19691969 * @param string $link_to_parent Optional. Boolean to control making the author's name a link
    1970  *                               to their comment. Default true.
     1970 *                               to their comment. Default false.
    19711971 */
    1972 function comment_form_title( $no_reply_text = false, $reply_text = false, $link_to_parent = true ) {
     1972function comment_form_title( $no_reply_text = false, $reply_text = false, $link_to_parent = false ) {
    19731973        global $comment;
    19741974
    19751975        if ( false === $no_reply_text ) {