Make WordPress Core


Ignore:
Timestamp:
01/05/2021 05:14:24 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Corrections and improvements to types used in various docblocks.

See #51800, #52217

File:
1 edited

Legend:

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

    r49735 r49936  
    879879 * @since 5.4.0 The `$deprecated` parameter was changed to `$post_id`.
    880880 *
    881  * @param string      $zero       Optional. Text for no comments. Default false.
    882  * @param string      $one        Optional. Text for one comment. Default false.
    883  * @param string      $more       Optional. Text for more than one comment. Default false.
    884  * @param int|WP_Post $post_id    Optional. Post ID or WP_Post object. Default is the global `$post`.
     881 * @param string|false $zero    Optional. Text for no comments. Default false.
     882 * @param string|false $one     Optional. Text for one comment. Default false.
     883 * @param string|false $more    Optional. Text for more than one comment. Default false.
     884 * @param int|WP_Post  $post_id Optional. Post ID or WP_Post object. Default is the global `$post`.
    885885 */
    886886function comments_number( $zero = false, $one = false, $more = false, $post_id = 0 ) {
     
    11091109 * @since 0.71
    11101110 *
    1111  * @param string $commenttxt   Optional. String to display for comment type. Default false.
    1112  * @param string $trackbacktxt Optional. String to display for trackback type. Default false.
    1113  * @param string $pingbacktxt  Optional. String to display for pingback type. Default false.
     1111 * @param string|false $commenttxt   Optional. String to display for comment type. Default false.
     1112 * @param string|false $trackbacktxt Optional. String to display for trackback type. Default false.
     1113 * @param string|false $pingbacktxt  Optional. String to display for pingback type. Default false.
    11141114 */
    11151115function comment_type( $commenttxt = false, $trackbacktxt = false, $pingbacktxt = false ) {
     
    12001200 * @since 0.71
    12011201 *
    1202  * @param int $deprecated Not used (Was $timezone = 0).
     1202 * @param int|string $deprecated Not used (Was $timezone = 0).
    12031203 */
    12041204function trackback_rdf( $deprecated = '' ) {
     
    19811981 * @global WP_Comment $comment Global comment object.
    19821982 *
    1983  * @param string $no_reply_text  Optional. Text to display when not replying to a comment.
    1984  *                               Default false.
    1985  * @param string $reply_text     Optional. Text to display when replying to a comment.
    1986  *                               Default false. Accepts "%s" for the author of the comment
    1987  *                               being replied to.
    1988  * @param string $link_to_parent Optional. Boolean to control making the author's name a link
    1989  *                               to their comment. Default true.
     1983 * @param string|false $no_reply_text  Optional. Text to display when not replying to a comment.
     1984 *                                     Default false.
     1985 * @param string|false $reply_text     Optional. Text to display when replying to a comment.
     1986 *                                     Default false. Accepts "%s" for the author of the comment
     1987 *                                     being replied to.
     1988 * @param bool        $link_to_parent Optional. Boolean to control making the author's name a link
     1989 *                                     to their comment. Default true.
    19901990 */
    19911991function comment_form_title( $no_reply_text = false, $reply_text = false, $link_to_parent = true ) {
Note: See TracChangeset for help on using the changeset viewer.