Make WordPress Core

Changeset 47008


Ignore:
Timestamp:
12/24/2019 04:08:34 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for get_comment_author_url().

Props stevenlinx.
Fixes #49076.

File:
1 edited

Legend:

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

    r46885 r47008  
    243243
    244244/**
    245  * Display the html link to the url of the author of the current comment.
     245 * Display the HTML link to the URL of the author of the current comment.
    246246 *
    247247 * @since 0.71
     
    295295
    296296/**
    297  * Retrieve the url of the author of the current comment.
     297 * Retrieves the URL of the author of the current comment, not linked.
    298298 *
    299299 * @since 1.5.0
     
    302302 * @param int|WP_Comment $comment_ID Optional. WP_Comment or the ID of the comment for which to get the author's URL.
    303303 *                                   Default current comment.
    304  * @return string Comment author URL.
     304 * @return string Comment author URL, if provided, an empty string otherwise.
    305305 */
    306306function get_comment_author_url( $comment_ID = 0 ) {
     
    328328
    329329/**
    330  * Display the url of the author of the current comment.
     330 * Displays the URL of the author of the current comment, not linked.
    331331 *
    332332 * @since 0.71
     
    353353
    354354/**
    355  * Retrieves the HTML link of the url of the author of the current comment.
     355 * Retrieves the HTML link of the URL of the author of the current comment.
    356356 *
    357357 * $linktext parameter is only used if the URL does not exist for the comment
     
    398398
    399399/**
    400  * Displays the HTML link of the url of the author of the current comment.
     400 * Displays the HTML link of the URL of the author of the current comment.
    401401 *
    402402 * @since 0.71
     
    13501350
    13511351    /*
    1352      * The url of the current comment author escaped for use in attributes.
     1352     * The URL of the current comment author escaped for use in attributes.
    13531353     */
    13541354    $comment_author_url = esc_url( $commenter['comment_author_url'] );
Note: See TracChangeset for help on using the changeset viewer.