Ticket #20807: 20807-3.patch
| File 20807-3.patch, 2.1 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/image.php
311 311 312 312 if ( ! empty( $exif['Copyright'] ) ) 313 313 $meta['copyright'] = utf8_encode( trim( $exif['Copyright'] ) ); 314 if ( ! empty($exif['FNumber'] ) ) 314 315 if ( ! empty( $exif['FNumber'] ) ) 315 316 $meta['aperture'] = round( wp_exif_frac2dec( $exif['FNumber'] ), 2 ); 316 if ( ! empty($exif['Model'] ) ) 317 318 if ( ! empty( $exif['Model'] ) ) 317 319 $meta['camera'] = utf8_encode( trim( $exif['Model'] ) ); 318 if ( ! empty($exif['DateTimeDigitized'] ) ) 320 321 if ( ! empty( $exif['DateTimeDigitized'] ) ) 319 322 $meta['created_timestamp'] = wp_exif_date2ts($exif['DateTimeDigitized'] ); 320 if ( ! empty($exif['FocalLength'] ) ) 323 324 if ( ! empty( $exif['FocalLength'] ) ) 321 325 $meta['focal_length'] = wp_exif_frac2dec( $exif['FocalLength'] ); 322 if ( ! empty($exif['ISOSpeedRatings'] ) ) 323 $meta['iso'] = utf8_encode( trim( $exif['ISOSpeedRatings'] ) ); 324 if ( ! empty($exif['ExposureTime'] ) ) 326 327 if ( ! empty( $exif['ISOSpeedRatings'] ) ) { 328 if ( is_string( $exif['ISOSpeedRatings'] ) ) 329 $meta['iso'] = utf8_encode( trim( $exif['ISOSpeedRatings'] ) ); 330 elseif ( is_array( $exif['ISOSpeedRatings'] ) ) 331 $meta['iso'] = utf8_encode( trim( (string) array_shift( $exif['ISOSpeedRatings'] ) ) ); 332 } 333 334 if ( ! empty( $exif['ExposureTime'] ) ) 325 335 $meta['shutter_speed'] = wp_exif_frac2dec( $exif['ExposureTime'] ); 326 336 } 327 337 -
wp-includes/js/plupload/handlers.dev.js
417 417 418 418 setResize( getUserSetting('upload_resize', false) ); 419 419 420 if ( up.features.dragdrop ) {420 if ( up.features.dragdrop && !$(document.body).hasClass('mobile') ) { 421 421 uploaddiv.addClass('drag-drop'); 422 422 $('#drag-drop-area').bind('dragover.wp-uploader', function(){ // dragenter doesn't fire right :( 423 423 uploaddiv.addClass('drag-over');