Changeset 58147 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 05/14/2024 06:03:43 PM (19 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/formatting.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r57910 r58147 961 961 } 962 962 963 // Store the site charset as a static to avoid multiple calls to wp_load_alloptions(). 964 if ( ! $charset ) { 965 static $_charset = null; 966 if ( ! isset( $_charset ) ) { 967 $alloptions = wp_load_alloptions(); 968 $_charset = isset( $alloptions['blog_charset'] ) ? $alloptions['blog_charset'] : ''; 969 } 970 $charset = $_charset; 971 } 972 973 if ( in_array( $charset, array( 'utf8', 'utf-8', 'UTF8' ), true ) ) { 974 $charset = 'UTF-8'; 975 } 963 $charset = _canonical_charset( $charset ? $charset : get_option( 'blog_charset' ) ); 976 964 977 965 $_quote_style = $quote_style; … … 1115 1103 static $is_utf8 = null; 1116 1104 if ( ! isset( $is_utf8 ) ) { 1117 $is_utf8 = i n_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ), true);1105 $is_utf8 = is_utf8_charset(); 1118 1106 } 1119 1107 if ( ! $is_utf8 ) {
Note: See TracChangeset
for help on using the changeset viewer.