WordPress at Your Fingertips
function is not described

media_upload_gallery() WP 2.5.0

Retrieves the legacy media uploader form in an iframe.

No Hooks.

Return

String|null.

Usage

media_upload_gallery();

Changelog

Since 2.5.0 Introduced.

Code of media_upload_gallery() WP 5.8.2

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 );
}