Make WordPress Core

Changeset 60166


Ignore:
Timestamp:
04/14/2025 10:32:08 PM (2 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Correct parameter types for get_comments_number_text().

This updates the @param types to correctly reflect the default false parameter.

Follow-up to [6495], [25567], [28912], [49936].

Props justlevine.
See #63268.

File:
1 edited

Legend:

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

    r59498 r60166  
    955955 * @since 5.4.0 Added the `$post` parameter to allow using the function outside of the loop.
    956956 *
    957  * @param string      $zero Optional. Text for no comments. Default false.
    958  * @param string      $one  Optional. Text for one comment. Default false.
    959  * @param string      $more Optional. Text for more than one comment. Default false.
    960  * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is the global `$post`.
     957 * @param string|false $zero Optional. Text for no comments. Default false.
     958 * @param string|false $one  Optional. Text for one comment. Default false.
     959 * @param string|false $more Optional. Text for more than one comment. Default false.
     960 * @param int|WP_Post  $post Optional. Post ID or WP_Post object. Default is the global `$post`.
    961961 * @return string Language string for the number of comments a post has.
    962962 */
Note: See TracChangeset for help on using the changeset viewer.