Changeset 62027
- Timestamp:
- 03/14/2026 04:00:01 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/image.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image.php
r61841 r62027 1089 1089 $alt_text = ''; 1090 1090 $img_contents = file_get_contents( $file ); 1091 1092 if ( false === $img_contents ) { 1093 return $alt_text; 1094 } 1095 1091 1096 // Find the start and end positions of the XMP metadata. 1092 1097 $xmp_start = strpos( $img_contents, '<x:xmpmeta' ); 1093 1098 $xmp_end = strpos( $img_contents, '</x:xmpmeta>' ); 1094 1099 1095 if ( ! $xmp_start || !$xmp_end ) {1100 if ( false === $xmp_start || false === $xmp_end ) { 1096 1101 // No XMP metadata found. 1097 1102 return $alt_text;
Note: See TracChangeset
for help on using the changeset viewer.