Make WordPress Core


Ignore:
Timestamp:
11/05/2019 09:28:51 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Docs on docs. Further improve documentation of known return types, plus other docs fixes.

See #48303

File:
1 edited

Legend:

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

    r46623 r46662  
    10831083 * @since 2.5.0
    10841084 *
    1085  * @param string $type The post_type you want the statuses for
    1086  * @return array As array of all the statuses for the supplied post type
     1085 * @param string $type The post_type you want the statuses for. Default 'post'.
     1086 * @return string[] An array of all the statuses for the supplied post type.
    10871087 */
    10881088function get_available_post_statuses( $type = 'post' ) {
     
    14931493 *
    14941494 * @param int $thumbnail_id ID of the attachment used for thumbnail
    1495  * @param mixed $post The post ID or object associated with the thumbnail, defaults to global $post.
     1495 * @param int|WP_Post $post Optional. The post ID or object associated with the thumbnail, defaults to global $post.
    14961496 * @return string html
    14971497 */
     
    21512151 *
    21522152 * @param WP_Post $post Post object.
    2153  * @return array Array of block categories.
     2153 * @return array[] Array of block categories.
    21542154 */
    21552155function get_block_categories( $post ) {
Note: See TracChangeset for help on using the changeset viewer.