media_upload_header
Outputs the legacy media upload header.
Description
media_upload_header();
Usage
if ( !function_exists( 'media_upload_header' ) ) { require_once ABSPATH . '/wp-admin/includes/media.php'; } // NOTICE! Understand what this does before running. $result = media_upload_header();
Defined (1)
The function is defined in the following location(s).
- /wp-admin/includes/media.php
- function media_upload_header() {
- $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0;
- echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>';
- if ( empty( $_GET['chromeless'] ) ) {
- echo '<div id="media-upload-header">';
- echo '</div>';
- }
- }