Changeset 58763 for trunk/src/wp-includes/functions.php
- Timestamp:
- 07/18/2024 06:02:17 PM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r58742 r58763 7497 7497 * 7498 7498 * @since 6.6.0 7499 * @since 6.6.1 A wrapper for _is_utf8_charset 7500 * 7501 * @see _is_utf8_charset 7499 7502 * 7500 7503 * @param string|null $blog_charset Optional. Slug representing a text character encoding, or "charset". … … 7504 7507 */ 7505 7508 function is_utf8_charset( $blog_charset = null ) { 7506 $charset_to_examine = $blog_charset ?? get_option( 'blog_charset' ); 7507 7508 /* 7509 * Only valid string values count: the absence of a charset 7510 * does not imply any charset, let alone UTF-8. 7511 */ 7512 if ( ! is_string( $charset_to_examine ) ) { 7513 return false; 7514 } 7515 7516 return ( 7517 0 === strcasecmp( 'UTF-8', $charset_to_examine ) || 7518 0 === strcasecmp( 'UTF8', $charset_to_examine ) 7519 ); 7509 return _is_utf8_charset( $blog_charset ?? get_option( 'blog_charset' ) ); 7520 7510 } 7521 7511
Note: See TracChangeset
for help on using the changeset viewer.