Changeset 14825 for sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/photo.php
- Timestamp:
- 04/22/2026 10:32:30 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/photo.php
r14681 r14825 385 385 386 386 foreach ( array( 'title', 'caption', 'credit', 'copyright', 'camera', 'iso' ) as $key ) { 387 if ( $meta[ $key ] && ! seems_utf8( $meta[ $key ] ) ) {387 if ( $meta[ $key ] && ! wp_is_valid_utf8( $meta[ $key ] ) ) { 388 388 $meta[ $key ] = mb_convert_encoding( $meta[ $key ], 'UTF-8', 'ISO-8859-1' ); 389 389 } … … 391 391 392 392 foreach ( $meta['keywords'] as $key => $keyword ) { 393 if ( ! seems_utf8( $keyword ) ) {393 if ( ! wp_is_valid_utf8( $keyword ) ) { 394 394 $meta['keywords'][ $key ] = mb_convert_encoding( $keyword, 'UTF-8', 'ISO-8859-1' ); 395 395 } … … 990 990 $text = wp_kses( $text, 'strip' ); 991 991 992 if ( $text && ! seems_utf8( $text ) ) {992 if ( $text && ! wp_is_valid_utf8( $text ) ) { 993 993 $text = mb_convert_encoding( $text, 'UTF-8', 'ISO-8859-1' ); 994 994 }
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)