wordpress-stubs icon indicating copy to clipboard operation
wordpress-stubs copied to clipboard

get_media_items params are optional

Open zanona opened this issue 3 years ago • 1 comments

It looks like the current stub for get_media_items requires the $error parameter while both seem to be optional?

https://developer.wordpress.org/reference/functions/get_media_items/

/**
 * Retrieve HTML for media items of post gallery.
 *
 * The HTML markup retrieved will be created for the progress of SWF Upload
 * component. Will also create link for showing and hiding the form to modify
 * the image attachment.
 *
 * @since 2.5.0
 *
 * @global WP_Query $wp_the_query
 *
 * @param int $post_id Optional. Post ID.
 * @param array $errors Errors for attachment, if any.
 * @return string
 */
function get_media_items($post_id, $errors)
{
}

zanona avatar Aug 12 '20 07:08 zanona