Changeset 42269 for branches/4.8/src/wp-includes/general-template.php
- Timestamp:
- 11/29/2017 04:12:12 PM (8 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/general-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
-
branches/4.8/src/wp-includes/general-template.php
r42262 r42269 3153 3153 $attributes[] = 'dir="rtl"'; 3154 3154 3155 if ( $lang = get_bloginfo('language') ) { 3156 if ( get_option('html_type') == 'text/html' || $doctype == 'html' ) 3157 $attributes[] = "lang=\"$lang\""; 3158 3159 if ( get_option('html_type') != 'text/html' || $doctype == 'xhtml' ) 3160 $attributes[] = "xml:lang=\"$lang\""; 3155 if ( $lang = get_bloginfo( 'language' ) ) { 3156 if ( get_option( 'html_type' ) == 'text/html' || $doctype == 'html' ) { 3157 $attributes[] = 'lang="' . esc_attr( $lang ) . '"'; 3158 } 3159 3160 if ( get_option( 'html_type' ) != 'text/html' || $doctype == 'xhtml' ) { 3161 $attributes[] = 'xml:lang="' . esc_attr( $lang ) . '"'; 3162 } 3161 3163 } 3162 3164
Note: See TracChangeset
for help on using the changeset viewer.