WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/01/2021 09:01:17 PM (4 months ago)
Author:
johnbillion
Message:

Docs: Corrections and improvements to types used in docblocks for symbols, properties, and filters.

See #53399

File:
1 edited

Legend:

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

    r51018 r51298  
    12341234 *                               from the array needs to match; 'and' means all elements must match.
    12351235 *                               Default 'and'.
    1236  * @return array A list of post status names or objects.
     1236 * @return string[]|stdClass[] A list of post status names or objects.
    12371237 */
    12381238function get_post_stati( $args = array(), $output = 'names', $operator = 'and' ) {
     
    14281428 *                                               'dashicons-chart-pie'. Pass 'none' to leave div.wp-menu-image empty
    14291429 *                                               so an icon can be added via CSS. Defaults to use the posts icon.
    1430  *     @type string      $capability_type       The string to use to build the read, edit, and delete capabilities.
     1430 *     @type string|array $capability_type       The string to use to build the read, edit, and delete capabilities.
    14311431 *                                               May be passed as an array to allow for alternative plurals when using
    14321432 *                                               this argument as a base to construct the capabilities, e.g.
     
    37953795 *     @type string $post_date_gmt         The date of the post in the GMT timezone. Default is
    37963796 *                                         the value of `$post_date`.
    3797  *     @type mixed $post_content          The post content. Default empty.
     3797 *     @type string $post_content          The post content. Default empty.
    37983798 *     @type string $post_content_filtered The filtered post content. Default empty.
    37993799 *     @type string $post_title            The post title. Default empty.
Note: See TracChangeset for help on using the changeset viewer.