Changeset 54958
- Timestamp:
- 12/12/2022 11:49:40 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r54891 r54958 426 426 * @param string|string[] $css_class Optional. One or more classes to add to the class list. 427 427 * Default empty. 428 * @param int|WP_Comment $comment Comment ID or WP_Comment object. Default current comment.429 * @param int|WP_Post $post Post ID or WP_Post object. Default current post.428 * @param int|WP_Comment $comment Optional. Comment ID or WP_Comment object. Default current comment. 429 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 430 430 * @param bool $display Optional. Whether to print or return the output. 431 431 * Default true. … … 453 453 * @global int $comment_thread_alt 454 454 * 455 * @param string|string[] $css_class Optional. One or more classes to add to the class list. Default empty. 456 * @param int|WP_Comment $comment_id Comment ID or WP_Comment object. Default current comment. 457 * @param int|WP_Post $post Post ID or WP_Post object. Default current post. 455 * @param string|string[] $css_class Optional. One or more classes to add to the class list. 456 * Default empty. 457 * @param int|WP_Comment $comment_id Optional. Comment ID or WP_Comment object. Default current comment. 458 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 458 459 * @return string[] An array of classes. 459 460 */ … … 592 593 * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. 593 594 * 594 * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the excerpt.595 * 595 * @param int|WP_Comment $comment_ID Optional. WP_Comment or ID of the comment for which to get the excerpt. 596 * Default current comment. 596 597 * @return string The possibly truncated comment excerpt. 597 598 */ … … 638 639 * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. 639 640 * 640 * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the excerpt.641 * 641 * @param int|WP_Comment $comment_ID Optional. WP_Comment or ID of the comment for which to print the excerpt. 642 * Default current comment. 642 643 */ 643 644 function comment_excerpt( $comment_ID = 0 ) { … … 700 701 * @global bool $in_comment_loop 701 702 * 702 * @param WP_Comment|int|null $comment Comment to retrieve. Default current comment.703 * @param WP_Comment|int|null $comment Optional. Comment to retrieve. Default current comment. 703 704 * @param array $args { 704 705 * An array of optional arguments to override the defaults. … … 959 960 * @see Walker_Comment::comment() 960 961 * 961 * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the text.962 * @param int|WP_Comment $comment_ID Optional. WP_Comment or ID of the comment for which to get the text. 962 963 * Default current comment. 963 964 * @param array $args Optional. An array of arguments. Default empty array. … … 1005 1006 * @see Walker_Comment::comment() 1006 1007 * 1007 * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the text.1008 * @param int|WP_Comment $comment_ID Optional. WP_Comment or ID of the comment for which to print the text. 1008 1009 * Default current comment. 1009 1010 * @param array $args Optional. An array of arguments. Default empty array. … … 1232 1233 * @since 1.5.0 1233 1234 * 1234 * @param int|WP_Post $post Post ID or WP_Post object. Default current post.1235 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 1235 1236 * @return bool True if the comments are open. 1236 1237 */ … … 1261 1262 * @since 1.5.0 1262 1263 * 1263 * @param int|WP_Post $post Post ID or WP_Post object. Default current post.1264 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 1264 1265 * @return bool True if pings are accepted 1265 1266 */ … … 1662 1663 * @type string $after The text or HTML to add after the reply link. Default empty. 1663 1664 * } 1664 * @param int|WP_Comment $comment Comment being replied to. Default current comment.1665 * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on.1665 * @param int|WP_Comment $comment Optional. Comment being replied to. Default current comment. 1666 * @param int|WP_Post $post Optional. Post ID or WP_Post object the comment is going to be displayed on. 1666 1667 * Default current post. 1667 1668 * @return string|false|null Link to show comment form, if successful. False, if comments are closed. … … 1783 1784 * 1784 1785 * @param array $args Optional. Override default options. Default empty array. 1785 * @param int|WP_Comment $comment Comment being replied to. Default current comment.1786 * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on.1786 * @param int|WP_Comment $comment Optional. Comment being replied to. Default current comment. 1787 * @param int|WP_Post $post Optional. Post ID or WP_Post object the comment is going to be displayed on. 1787 1788 * Default current post. 1788 1789 */ … … 1874 1875 * 1875 1876 * @param array $args Optional. Override default options. Default empty array. 1876 * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on.1877 * @param int|WP_Post $post Optional. Post ID or WP_Post object the comment is going to be displayed on. 1877 1878 * Default current post. 1878 1879 */ … … 2320 2321 * @type string $format The comment form format. Default 'xhtml'. Accepts 'xhtml', 'html5'. 2321 2322 * } 2322 * @param int|WP_Post $post Post ID or WP_Post object to generate the form for. Default current post.2323 * @param int|WP_Post $post Optional. Post ID or WP_Post object to generate the form for. Default current post. 2323 2324 */ 2324 2325 function comment_form( $args = array(), $post = null ) {
Note: See TracChangeset
for help on using the changeset viewer.