Changes from branches/2.6/wp-admin/includes/image.php at r8745 to trunk/wp-admin/includes/image.php at r7673
- File:
-
- 1 edited
-
trunk/wp-admin/includes/image.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image.php
r8745 r7673 220 220 $iptc = iptcparse($info['APP13']); 221 221 if ( !empty($iptc['2#110'][0]) ) // credit 222 $meta['credit'] = utf8_encode(trim($iptc['2#110'][0]));222 $meta['credit'] = trim( $iptc['2#110'][0] ); 223 223 elseif ( !empty($iptc['2#080'][0]) ) // byline 224 $meta['credit'] = utf8_encode(trim($iptc['2#080'][0]));224 $meta['credit'] = trim( $iptc['2#080'][0] ); 225 225 if ( !empty($iptc['2#055'][0]) and !empty($iptc['2#060'][0]) ) // created datee and time 226 226 $meta['created_timestamp'] = strtotime($iptc['2#055'][0] . ' ' . $iptc['2#060'][0]); 227 227 if ( !empty($iptc['2#120'][0]) ) // caption 228 $meta['caption'] = utf8_encode(trim($iptc['2#120'][0]));228 $meta['caption'] = trim( $iptc['2#120'][0] ); 229 229 if ( !empty($iptc['2#116'][0]) ) // copyright 230 $meta['copyright'] = utf8_encode(trim($iptc['2#116'][0]));230 $meta['copyright'] = trim( $iptc['2#116'][0] ); 231 231 if ( !empty($iptc['2#005'][0]) ) // title 232 $meta['title'] = utf8_encode(trim($iptc['2#005'][0]));232 $meta['title'] = trim( $iptc['2#005'][0] ); 233 233 } 234 234 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)