Ticket #33772: 33772.patch
File 33772.patch, 906 bytes (added by , 10 years ago) |
---|
-
wp-admin/includes/image.php
275 275 'shutter_speed' => 0, 276 276 'title' => '', 277 277 'orientation' => 0, 278 'keywords' => array(), 278 279 ); 279 280 280 281 /* … … 323 324 324 325 if ( ! empty( $iptc['2#116'][0] ) ) // copyright 325 326 $meta['copyright'] = trim( $iptc['2#116'][0] ); 327 328 if ( ! empty( $iptc['2#025'][0] ) ) // keywords array 329 $meta['keywords'] = array_values( $iptc['2#025'] ); 326 330 } 327 331 } 328 332 … … 413 417 * @param string $file Path to image file. 414 418 * @param int $sourceImageType Type of image. 415 419 */ 416 return apply_filters( 'wp_read_image_metadata', $meta, $ file, $sourceImageType );420 return apply_filters( 'wp_read_image_metadata', $meta, $iptc, $file, $sourceImageType ); 417 421 418 422 } 419 423