Changeset 52205 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 11/18/2021 01:55:36 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r52200 r52205 43 43 * 44 44 * @param string $author The comment author's username. 45 * @param int $comment_ID The comment ID.45 * @param string $comment_ID The comment ID as a numeric string. 46 46 * @param WP_Comment $comment The comment object. 47 47 */ … … 69 69 * 70 70 * @param string $author The comment author's username. 71 * @param int $comment_ID The comment ID.71 * @param string $comment_ID The comment ID as a numeric string. 72 72 */ 73 73 echo apply_filters( 'comment_author', $author, $comment->comment_ID ); … … 94 94 * 95 95 * @param string $comment_author_email The comment author's email address. 96 * @param int $comment_ID The comment ID.96 * @param string $comment_ID The comment ID as a numeric string. 97 97 * @param WP_Comment $comment The comment object. 98 98 */ … … 126 126 * 127 127 * @param string $author_email The comment author's email address. 128 * @param int $comment_ID The comment ID.128 * @param string $comment_ID The comment ID as a numeric string. 129 129 */ 130 130 echo apply_filters( 'author_email', $author_email, $comment->comment_ID ); … … 237 237 * Empty for an invalid URL. 238 238 * @param string $author The comment author's username. 239 * @param int $comment_ID The comment ID.239 * @param string $comment_ID The comment ID as a numeric string. 240 240 */ 241 241 return apply_filters( 'get_comment_author_link', $return, $author, $comment->comment_ID ); … … 275 275 * 276 276 * @param string $comment_author_IP The comment author's IP address, or an empty string if it's not available. 277 * @param int $comment_ID The comment ID.277 * @param string $comment_ID The comment ID as a numeric string. 278 278 * @param WP_Comment $comment The comment object. 279 279 */ … … 321 321 * @since 4.1.0 The `$comment_ID` and `$comment` parameters were added. 322 322 * 323 * @param string $url The comment author's URL.324 * @param int $comment_ID The comment ID.325 * @param WP_Comment $comment The comment object.323 * @param string $url The comment author's URL, or an empty string. 324 * @param string|int $comment_ID The comment ID as a numeric string, or 0 if not found. 325 * @param WP_Comment|null $comment The comment object, or null if not found. 326 326 */ 327 327 return apply_filters( 'get_comment_author_url', $url, $id, $comment ); … … 348 348 * 349 349 * @param string $author_url The comment author's URL. 350 * @param int $comment_ID The comment ID.350 * @param string $comment_ID The comment ID as a numeric string. 351 351 */ 352 352 echo apply_filters( 'comment_url', $author_url, $comment->comment_ID ); … … 532 532 * @param string[] $classes An array of comment classes. 533 533 * @param string[] $class An array of additional classes added to the list. 534 * @param int $comment_id The comment ID.534 * @param string $comment_id The comment ID as a numeric string. 535 535 * @param WP_Comment $comment The comment object. 536 536 * @param int|WP_Post $post_id The post ID or WP_Post object. … … 625 625 * 626 626 * @param string $excerpt The comment excerpt text. 627 * @param int $comment_ID The comment ID.627 * @param string $comment_ID The comment ID as a numeric string. 628 628 * @param WP_Comment $comment The comment object. 629 629 */ … … 651 651 * 652 652 * @param string $comment_excerpt The comment excerpt text. 653 * @param int $comment_ID The comment ID.653 * @param string $comment_ID The comment ID as a numeric string. 654 654 */ 655 655 echo apply_filters( 'comment_excerpt', $comment_excerpt, $comment->comment_ID ); … … 661 661 * @since 1.5.0 662 662 * 663 * @return int The comment ID.663 * @return string The comment ID as a numeric string. 664 664 */ 665 665 function get_comment_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid … … 670 670 * 671 671 * @since 1.5.0 672 * @since 4.1.0 The `$comment _ID` parameter was added.673 * 674 * @param int $comment_ID The current comment ID.672 * @since 4.1.0 The `$comment` parameter was added. 673 * 674 * @param string $comment_ID The current comment ID as a numeric string. 675 675 * @param WP_Comment $comment The comment object. 676 676 */ … … 1098 1098 * 1099 1099 * @param string $comment_type The type of comment, such as 'comment', 'pingback', or 'trackback'. 1100 * @param int $comment_ID The comment ID.1100 * @param string $comment_ID The comment ID as a numeric string. 1101 1101 * @param WP_Comment $comment The comment object. 1102 1102 */
Note: See TracChangeset
for help on using the changeset viewer.