wpseek.com
A WordPress-centric search engine for devs and theme authors
media_upload_header › WordPress Function
Since2.5.0
Deprecatedn/a
› media_upload_header ( No parameters )
| Defined at: |
|
| Codex: |
Outputs the legacy media upload header.
Related Functions: wp_media_upload_handler, media_upload_form_handler, media_upload_gallery, media_upload_audio, media_upload_image
Source
function media_upload_header() {
$post_id = isset( $_REQUEST['post_id'] ) ? (int) $_REQUEST['post_id'] : 0;
wp_print_inline_script_tag(
sprintf( 'var post_id = %s;', wp_json_encode( $post_id, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) )
);
if ( empty( $_GET['chromeless'] ) ) {
echo '<div id="media-upload-header">';
the_media_upload_tabs();
echo '</div>';
}
}