Changeset 52205
- Timestamp:
- 11/18/2021 01:55:36 PM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r52007 r52205 1073 1073 * 1074 1074 * @param string $column_name The custom column's name. 1075 * @param int $comment_id The custom column's unique ID number.1075 * @param string $comment_id The comment ID as a numeric string. 1076 1076 */ 1077 1077 do_action( 'manage_comments_custom_column', $column_name, $item->comment_ID ); -
trunk/src/wp-admin/network/sites.php
r51475 r52205 262 262 * @since MU (3.0.0) 263 263 * 264 * @param string$id The ID of the activated site.264 * @param int $id The ID of the activated site. 265 265 */ 266 266 do_action( 'activate_blog', $id ); … … 273 273 * @since MU (3.0.0) 274 274 * 275 * @param string$id The ID of the site being deactivated.275 * @param int $id The ID of the site being deactivated. 276 276 */ 277 277 do_action( 'deactivate_blog', $id ); -
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 */ -
trunk/src/wp-includes/comment.php
r52029 r52205 1489 1489 * @since 4.9.0 Added the `$comment` parameter. 1490 1490 * 1491 * @param int $comment_id The comment ID.1491 * @param string $comment_id The comment ID as a numeric string. 1492 1492 * @param WP_Comment $comment The comment to be deleted. 1493 1493 */ … … 1517 1517 * @since 4.9.0 Added the `$comment` parameter. 1518 1518 * 1519 * @param int $comment_id The comment ID.1519 * @param string $comment_id The comment ID as a numeric string. 1520 1520 * @param WP_Comment $comment The deleted comment. 1521 1521 */ … … 1563 1563 * @since 4.9.0 Added the `$comment` parameter. 1564 1564 * 1565 * @param int $comment_id The comment ID.1565 * @param string $comment_id The comment ID as a numeric string. 1566 1566 * @param WP_Comment $comment The comment to be trashed. 1567 1567 */ … … 1580 1580 * @since 4.9.0 Added the `$comment` parameter. 1581 1581 * 1582 * @param int $comment_id The comment ID.1582 * @param string $comment_id The comment ID as a numeric string. 1583 1583 * @param WP_Comment $comment The trashed comment. 1584 1584 */ … … 1611 1611 * @since 4.9.0 Added the `$comment` parameter. 1612 1612 * 1613 * @param int $comment_id The comment ID.1613 * @param string $comment_id The comment ID as a numeric string. 1614 1614 * @param WP_Comment $comment The comment to be untrashed. 1615 1615 */ … … 1631 1631 * @since 4.9.0 Added the `$comment` parameter. 1632 1632 * 1633 * @param int $comment_id The comment ID.1633 * @param string $comment_id The comment ID as a numeric string. 1634 1634 * @param WP_Comment $comment The untrashed comment. 1635 1635 */ … … 1710 1710 * @since 4.9.0 Added the `$comment` parameter. 1711 1711 * 1712 * @param int $comment_id The comment ID.1712 * @param string $comment_id The comment ID as a numeric string. 1713 1713 * @param WP_Comment $comment The comment to be unmarked as spam. 1714 1714 */ … … 1730 1730 * @since 4.9.0 Added the `$comment` parameter. 1731 1731 * 1732 * @param int $comment_id The comment ID.1732 * @param string $comment_id The comment ID as a numeric string. 1733 1733 * @param WP_Comment $comment The comment unmarked as spam. 1734 1734 */ … … 1864 1864 * @since 2.7.0 1865 1865 * 1866 * @param int $comment_ID The comment ID.1866 * @param string $comment_ID The comment ID as a numeric string. 1867 1867 * @param WP_Comment $comment Comment object. 1868 1868 */ … … 2434 2434 * @since 1.5.0 2435 2435 * 2436 * @param int $comment_id Comment ID.2436 * @param string $comment_id Comment ID as a numeric string. 2437 2437 * @param string $comment_status Current comment status. Possible values include 2438 2438 * 'hold', '0', 'approve', '1', 'spam', and 'trash'. -
trunk/src/wp-includes/link-template.php
r52180 r52205 1629 1629 * 1630 1630 * @param string $link Anchor tag for the edit link. 1631 * @param int $comment_id Comment ID.1631 * @param string $comment_id Comment ID as a numeric string. 1632 1632 * @param string $text Anchor text. 1633 1633 */ -
trunk/src/wp-includes/ms-functions.php
r52204 r52205 1470 1470 * @since 5.4.0 The `$blog_id` parameter was added. 1471 1471 * 1472 * @param string $msg Email body.1473 * @param int $blog_id The new site's ID.1472 * @param string $msg Email body. 1473 * @param int|string $blog_id The new site's ID as an integer or numeric string. 1474 1474 */ 1475 1475 $msg = apply_filters( 'newblog_notify_siteadmin', $msg, $blog_id ); -
trunk/src/wp-includes/ms-site.php
r51184 r52205 978 978 * @since 4.6.0 979 979 * 980 * @param int $id Blog ID.980 * @param string $id Site ID as a numeric string. 981 981 * @param WP_Site $blog Site object. 982 982 * @param string $domain_path_key md5 hash of domain and path. -
trunk/src/wp-includes/pluggable.php
r52083 r52205 1585 1585 * 1586 1586 * @param string[] $emails An array of email addresses to receive a comment notification. 1587 * @param int $comment_id The comment ID.1587 * @param string $comment_id The comment ID as a numeric string. 1588 1588 */ 1589 1589 $emails = apply_filters( 'comment_notification_recipients', $emails, $comment->comment_ID ); … … 1606 1606 * @since 3.8.0 1607 1607 * 1608 * @param bool $notify Whether to notify the post author of their own comment.1609 * Default false.1610 * @param int $comment_id The comment ID.1608 * @param bool $notify Whether to notify the post author of their own comment. 1609 * Default false. 1610 * @param string $comment_id The comment ID as a numeric string. 1611 1611 */ 1612 1612 $notify_author = apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID ); … … 1741 1741 * 1742 1742 * @param string $notify_message The comment notification email text. 1743 * @param int $comment_id Comment ID.1743 * @param string $comment_id Comment ID as a numeric string. 1744 1744 */ 1745 1745 $notify_message = apply_filters( 'comment_notification_text', $notify_message, $comment->comment_ID ); … … 1751 1751 * 1752 1752 * @param string $subject The comment notification email subject. 1753 * @param int $comment_id Comment ID.1753 * @param string $comment_id Comment ID as a numeric string. 1754 1754 */ 1755 1755 $subject = apply_filters( 'comment_notification_subject', $subject, $comment->comment_ID ); … … 1761 1761 * 1762 1762 * @param string $message_headers Headers for the comment notification email. 1763 * @param int $comment_id Comment ID.1763 * @param string $comment_id Comment ID as a numeric string. 1764 1764 */ 1765 1765 $message_headers = apply_filters( 'comment_notification_headers', $message_headers, $comment->comment_ID ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-navigation-areas-controller.php
r52204 r52205 247 247 * returned. 248 248 * 249 * @param WP_REST_Response \WP_Error $response The response object, or WP_Error object on failure.249 * @param WP_REST_Response|WP_Error $response The response object, or WP_Error object on failure. 250 250 * @param object $area The original status object. 251 251 * @param WP_REST_Request $request Request used to generate the response.
Note: See TracChangeset
for help on using the changeset viewer.