Make WordPress Core


Ignore:
Timestamp:
06/03/2014 03:52:46 AM (12 years ago)
Author:
DrewAPicture
Message:

Make sure $post is properly documented as optional where applicable.

See #28388.

File:
1 edited

Legend:

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

    r28652 r28653  
    29752975 * @since 3.6.0
    29762976 *
    2977  * @param string $type (Mime) type of media desired
    2978  * @param mixed $post Post ID or object
    2979  * @return array Found attachments
     2977 * @param string      $type Mime type.
     2978 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
     2979 * @return array Found attachments.
    29802980 */
    29812981function get_attached_media( $type, $post = 0 ) {
    … …  
    31013101 * @since 3.6.0
    31023102 *
    3103  * @param int|WP_Post $post Optional. Post ID or object.
     3103 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
    31043104 * @param bool        $html Whether to return HTML or data.
    31053105 * @return string|array Gallery data and srcs parsed from the expanded shortcode.
    … …  
    31263126 * @since 3.6.0
    31273127 *
    3128  * @param mixed $post Optional. Post ID or object.
    3129  * @return array A list of lists, each containing image srcs parsed
     3128 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
     3129 * @return array A list of lists, each containing image srcs parsed.
    31303130 *              from an expanded shortcode
    31313131 */
    … …  
    31403140 * @since 3.6.0
    31413141 *
    3142  * @param mixed $post Optional. Post ID or object.
    3143  * @return array A list of a gallery's image srcs in order
     3142 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
     3143 * @return array A list of a gallery's image srcs in order.
    31443144 */
    31453145function get_post_gallery_images( $post = 0 ) {
Note: See TracChangeset for help on using the changeset viewer.