wordpress-stubs
wordpress-stubs copied to clipboard
get_media_items params are optional
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)
{
}