Changeset 32964 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 06/27/2015 01:02:12 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r32673 r32964 1494 1494 if ( 'image' == $type && $calling_post_id && current_theme_supports( 'post-thumbnails', get_post_type( $calling_post_id ) ) 1495 1495 && post_type_supports( get_post_type( $calling_post_id ), 'thumbnail' ) && get_post_thumbnail_id( $calling_post_id ) != $attachment_id ) { 1496 1496 1497 1497 $calling_post = get_post( $calling_post_id ); 1498 1498 $calling_post_type_object = get_post_type_object( $calling_post->post_type ); … … 1744 1744 $post_id = isset( $_REQUEST['post_id'] ) ? intval( $_REQUEST['post_id'] ) : 0; 1745 1745 1746 if ( ! empty( $post_id ) ) { 1747 $post_type = get_post_type( $post_id ); 1746 if ( ! empty( $post_id ) ) { 1747 $post_type = get_post_type( $post_id ); 1748 1748 } else { 1749 $post_type = ''; 1750 } 1749 $post_type = ''; 1750 } 1751 1751 1752 1752 echo '<script type="text/javascript">post_id = ' . $post_id . ';post_type = ' . $post_type . ';</script>'; … … 3025 3025 * 3026 3026 * @param string $file Path to file. 3027 * @return array|bool eanReturns array of metadata, if found.3027 * @return array|bool Returns array of metadata, if found. 3028 3028 */ 3029 3029 function wp_read_audio_metadata( $file ) {
Note: See TracChangeset
for help on using the changeset viewer.