Make WordPress Core


Ignore:
Timestamp:
07/23/2020 09:53:43 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Miscellaneous DocBlock corrections.

See #49572.

File:
1 edited

Legend:

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

    r48590 r48591  
    634634 *
    635635 * @param mixed  $args   Optional. User defined arguments for replacing the defaults. Default empty.
    636  * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
    637  *                       a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT.
     636 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which
     637 *                       correspond to a WP_Post object, an associative array, or a numeric array,
     638 *                       respectively. Default OBJECT.
    638639 * @return WP_Post[]|int[] Array of post objects or post IDs.
    639640 */
     
    752753 *
    753754 * @param int|WP_Post|null $post   Optional. Post ID or post object. Defaults to global $post.
    754  * @param string           $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
    755  *                                 a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT.
     755 * @param string           $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which
     756 *                                 correspond to a WP_Post object, an associative array, or a numeric array,
     757 *                                 respectively. Default OBJECT.
    756758 * @param string           $filter Optional. Type of filter to apply. Accepts 'raw', 'edit', 'db',
    757759 *                                 or 'display'. Default 'raw'.
     
    35063508 *
    35073509 * @param array  $args   Optional. Arguments to retrieve posts. Default empty array.
    3508  * @param string $output Optional. The required return type. One of OBJECT or ARRAY_A, which correspond to
    3509  *                       a WP_Post object or an associative array, respectively. Default ARRAY_A.
    3510  * @return array|false Array of recent posts, where the type of each element is determined by $output parameter.
    3511  *                     Empty array on failure.
     3510 * @param string $output Optional. The required return type. One of OBJECT or ARRAY_A, which
     3511 *                       correspond to a WP_Post object or an associative array, respectively.
     3512 *                       Default ARRAY_A.
     3513 * @return array|false Array of recent posts, where the type of each element is determined
     3514 *                     by the `$output` parameter. Empty array on failure.
    35123515 */
    35133516function wp_get_recent_posts( $args = array(), $output = ARRAY_A ) {
     
    50495052 *
    50505053 * @param int|WP_Post $page   Page object or page ID. Passed by reference.
    5051  * @param string      $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
    5052  *                            a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT.
     5054 * @param string      $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which
     5055 *                            correspond to a WP_Post object, an associative array, or a numeric array,
     5056 *                            respectively. Default OBJECT.
    50535057 * @param string      $filter Optional. How the return value should be filtered. Accepts 'raw',
    50545058 *                            'edit', 'db', 'display'. Default 'raw'.
     
    50675071 *
    50685072 * @param string       $page_path Page path.
    5069  * @param string       $output    Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
    5070  *                                a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT.
     5073 * @param string       $output    Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which
     5074 *                                correspond to a WP_Post object, an associative array, or a numeric array,
     5075 *                                respectively. Default OBJECT.
    50715076 * @param string|array $post_type Optional. Post type or array of post types. Default 'page'.
    50725077 * @return WP_Post|array|null WP_Post (or array) on success, or null on failure.
     
    51695174 *
    51705175 * @param string       $page_title Page title.
    5171  * @param string       $output     Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
    5172  *                                 a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT.
     5176 * @param string       $output     Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which
     5177 *                                 correspond to a WP_Post object, an associative array, or a numeric array,
     5178 *                                 respectively. Default OBJECT.
    51735179 * @param string|array $post_type  Optional. Post type or array of post types. Default 'page'.
    51745180 * @return WP_Post|array|null WP_Post (or array) on success, or null on failure.
Note: See TracChangeset for help on using the changeset viewer.