mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55495 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -239,16 +239,15 @@ function get_comment_author_link( $comment_id = 0 ) {
|
||||
*
|
||||
* @since 6.2.0
|
||||
*
|
||||
* @param string[] $rel_parts An array of strings representing the rel
|
||||
* tags which will be joined into the anchor's
|
||||
* rel attribute.
|
||||
* @param WP_Comment $comment The comment object
|
||||
* @param string[] $rel_parts An array of strings representing the rel tags
|
||||
* which will be joined into the anchor's rel attribute.
|
||||
* @param WP_Comment $comment The comment object.
|
||||
*/
|
||||
$rel_parts = apply_filters( 'comment_author_link_rel', $rel_parts, $comment );
|
||||
|
||||
$rel = implode( ' ', $rel_parts );
|
||||
$rel = esc_attr( $rel );
|
||||
// empty space before rel necessary for later sprintf.
|
||||
// Empty space before 'rel' is necessary for later sprintf().
|
||||
$rel = ! empty( $rel ) ? sprintf( ' rel="%s"', $rel ) : '';
|
||||
|
||||
$return = sprintf(
|
||||
|
||||
Reference in New Issue
Block a user