Ticket #32948: 32948.diff
File 32948.diff, 783 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/includes/media.php
1740 1740 * @since 2.5.0 1741 1741 */ 1742 1742 function media_upload_header() { 1743 1744 1743 $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0; 1745 1744 1746 if ( ! empty( $post_id ) ) { 1747 $post_type = get_post_type( $post_id ); 1748 } else { 1749 $post_type = ''; 1750 } 1751 1752 echo '<script type="text/javascript">post_id = ' . $post_id . ';post_type = ' . $post_type . ';</script>'; 1745 echo '<script type="text/javascript">post_id = ' . $post_id . ';</script>'; 1753 1746 if ( empty( $_GET['chromeless'] ) ) { 1754 1747 echo '<div id="media-upload-header">'; 1755 1748 the_media_upload_tabs();