media_upload_gallery() – Retrieves the legacy media uploader form in an iframe.

You appear to be a bot. Output may be restricted

Description

Retrieves the legacy media uploader form in an iframe.

Usage

$string|null = media_upload_gallery();

Parameters

Returns

string|null

Source

File name: wordpress/wp-admin/includes/media.php
Lines:

1 to 18 of 18
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 );
}
 

 View on GitHub View on Trac