Changeset 33263
- Timestamp:
- 07/14/2015 03:05:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r32964 r33263 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">';
Note: See TracChangeset
for help on using the changeset viewer.