Make WordPress Core


Ignore:
Timestamp:
03/09/2023 12:18:29 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Formatting: Restore consistent quotes in _make_web_ftp_clickable_cb().

After the introduction of _make_clickable_rel_attr() in an earlier commit, the function ended up returning link markup with a mix of single and double quotes.

This commit ensures that _make_web_ftp_clickable_cb() always returns double quotes, restoring consistency with other similar callback functions used by make_clickable():

  • _make_url_clickable_cb()
  • _make_email_clickable_cb()

Follow-up to [55289].

See #53290, #56444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-template.php

    r55398 r55495  
    240240         * @since 6.2.0
    241241         *
    242          * @param string[]   $rel_parts An array of strings representing the rel
    243          *                              tags which will be joined into the anchor's
    244          *                              rel attribute.
    245          * @param WP_Comment $comment   The comment object
     242         * @param string[]   $rel_parts An array of strings representing the rel tags
     243         *                              which will be joined into the anchor's rel attribute.
     244         * @param WP_Comment $comment   The comment object.
    246245         */
    247246        $rel_parts = apply_filters( 'comment_author_link_rel', $rel_parts, $comment );
     
    249248        $rel = implode( ' ', $rel_parts );
    250249        $rel = esc_attr( $rel );
    251         // empty space before rel necessary for later sprintf.
     250        // Empty space before 'rel' is necessary for later sprintf().
    252251        $rel = ! empty( $rel ) ? sprintf( ' rel="%s"', $rel ) : '';
    253252
Note: See TracChangeset for help on using the changeset viewer.