Ticket #26265: 26265.patch
File 26265.patch, 1.3 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/media.php
2969 2969 * @return array|bool Returns array of metadata, if found. 2970 2970 */ 2971 2971 function wp_read_video_metadata( $file ) { 2972 if ( ! file_exists( $file ) ) 2972 if ( ! file_exists( $file ) ) { 2973 2973 return false; 2974 } 2974 2975 2975 2976 $metadata = array(); 2976 2977 2977 if ( ! class_exists( 'getID3', false ) ) 2978 if ( ! defined( 'GETID3_TEMP_DIR' ) ) { 2979 define( 'GETID3_TEMP_DIR', get_temp_dir() ); 2980 } 2981 2982 if ( ! class_exists( 'getID3', false ) ) { 2978 2983 require( ABSPATH . WPINC . '/ID3/getid3.php' ); 2984 } 2979 2985 $id3 = new getID3(); 2980 2986 $data = $id3->analyze( $file ); 2981 2987 … … 3025 3031 * @return array|bool Returns array of metadata, if found. 3026 3032 */ 3027 3033 function wp_read_audio_metadata( $file ) { 3028 if ( ! file_exists( $file ) ) 3034 if ( ! file_exists( $file ) ) { 3029 3035 return false; 3036 } 3030 3037 $metadata = array(); 3031 3038 3032 if ( ! class_exists( 'getID3', false ) ) 3039 if ( ! defined( 'GETID3_TEMP_DIR' ) ) { 3040 define( 'GETID3_TEMP_DIR', get_temp_dir() ); 3041 } 3042 3043 if ( ! class_exists( 'getID3', false ) ) { 3033 3044 require( ABSPATH . WPINC . '/ID3/getid3.php' ); 3045 } 3034 3046 $id3 = new getID3(); 3035 3047 $data = $id3->analyze( $file ); 3036 3048