Ticket #40075: 40075.patch
File 40075.patch, 1.0 KB (added by , 8 years ago) |
---|
-
src/wp-admin/includes/media.php
3072 3072 3073 3073 wp_add_id3_tag_data( $metadata, $data ); 3074 3074 3075 // Backup blob data. 3076 $image_data = null; 3077 if ( isset( $metadata['image']['data'] ) ) { 3078 $image_data = $metadata['image']['data']; 3079 unset( $metadata['image']['data'] ); 3080 } 3081 3075 3082 $metadata = wp_kses_post_deep( $metadata ); 3076 3083 3084 // Restore blob data. 3085 if ( $image_data ) { 3086 $metadata['image']['data'] = $image_data; 3087 } 3088 3077 3089 return $metadata; 3078 3090 } 3079 3091 … … 3119 3131 3120 3132 wp_add_id3_tag_data( $metadata, $data ); 3121 3133 3134 // Backup blob data. 3135 $image_data = null; 3136 if ( isset( $metadata['image']['data'] ) ) { 3137 $image_data = $metadata['image']['data']; 3138 unset( $metadata['image']['data'] ); 3139 } 3140 3122 3141 $metadata = wp_kses_post_deep( $metadata ); 3123 3142 3143 // Restore blob data. 3144 if ( $image_data ) { 3145 $metadata['image']['data'] = $image_data; 3146 } 3147 3124 3148 return $metadata; 3125 3149 } 3126 3150