Changeset 14681 for sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/photo.php
- Timestamp:
- 03/09/2026 06:37:33 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/photo.php
r14650 r14681 386 386 foreach ( array( 'title', 'caption', 'credit', 'copyright', 'camera', 'iso' ) as $key ) { 387 387 if ( $meta[ $key ] && ! seems_utf8( $meta[ $key ] ) ) { 388 $meta[ $key ] = utf8_encode( $meta[ $key ]);388 $meta[ $key ] = mb_convert_encoding( $meta[ $key ], 'UTF-8', 'ISO-8859-1' ); 389 389 } 390 390 } … … 392 392 foreach ( $meta['keywords'] as $key => $keyword ) { 393 393 if ( ! seems_utf8( $keyword ) ) { 394 $meta['keywords'][ $key ] = utf8_encode( $keyword);394 $meta['keywords'][ $key ] = mb_convert_encoding( $keyword, 'UTF-8', 'ISO-8859-1' ); 395 395 } 396 396 } … … 991 991 992 992 if ( $text && ! seems_utf8( $text ) ) { 993 $text = utf8_encode( $text);993 $text = mb_convert_encoding( $text, 'UTF-8', 'ISO-8859-1' ); 994 994 } 995 995
Note: See TracChangeset
for help on using the changeset viewer.