media_upload_gallery

The timeline below displays how wordpress function media_upload_gallery has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.4

/**
 * Retrieves the legacy media uploader form in an iframe.
 *
 * @since 2.5.0
 *
 * @return string|null
 */
function media_upload_gallery()
{
    $errors = array();
    if (!empty($_POST)) {
        $return = media_upload_form_handler();
        if (is_string($return)) {
            return $return;
        }
        if (is_array($return)) {
            $errors = $return;
        }
    }
    wp_enqueue_script('admin-gallery');
    return wp_iframe('media_upload_gallery_form', $errors);
}

WordPress Version: 4.1

/**
 * {@internal Missing Short Description}}
 *
 * @since 2.5.0
 *
 * @return string|null
 */
function media_upload_gallery()
{
    $errors = array();
    if (!empty($_POST)) {
        $return = media_upload_form_handler();
        if (is_string($return)) {
            return $return;
        }
        if (is_array($return)) {
            $errors = $return;
        }
    }
    wp_enqueue_script('admin-gallery');
    return wp_iframe('media_upload_gallery_form', $errors);
}

WordPress Version: 3.7

/**
 * {@internal Missing Short Description}}
 *
 * @since 2.5.0
 *
 * @return unknown
 */
function media_upload_gallery()
{
    $errors = array();
    if (!empty($_POST)) {
        $return = media_upload_form_handler();
        if (is_string($return)) {
            return $return;
        }
        if (is_array($return)) {
            $errors = $return;
        }
    }
    wp_enqueue_script('admin-gallery');
    return wp_iframe('media_upload_gallery_form', $errors);
}