media_upload_header

Outputs the legacy media upload header.

Description

media_upload_header(); 

Usage

  1. if ( !function_exists( 'media_upload_header' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/media.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = media_upload_header(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/media.php  
  1. function media_upload_header() { 
  2. $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0; 
  3.  
  4. echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>'; 
  5. if ( empty( $_GET['chromeless'] ) ) { 
  6. echo '<div id="media-upload-header">'; 
  7. echo '</div>';