Changeset 42289
- Timestamp:
- 11/29/2017 04:29:35 PM (8 years ago)
- Location:
- branches/4.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/general-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3
-
branches/4.3/src/wp-includes/general-template.php
r33606 r42289 2628 2628 $attributes[] = 'dir="rtl"'; 2629 2629 2630 if ( $lang = get_bloginfo('language') ) { 2631 if ( get_option('html_type') == 'text/html' || $doctype == 'html' ) 2632 $attributes[] = "lang=\"$lang\""; 2633 2634 if ( get_option('html_type') != 'text/html' || $doctype == 'xhtml' ) 2635 $attributes[] = "xml:lang=\"$lang\""; 2630 if ( $lang = get_bloginfo( 'language' ) ) { 2631 if ( get_option( 'html_type' ) == 'text/html' || $doctype == 'html' ) { 2632 $attributes[] = 'lang="' . esc_attr( $lang ) . '"'; 2633 } 2634 2635 if ( get_option( 'html_type' ) != 'text/html' || $doctype == 'xhtml' ) { 2636 $attributes[] = 'xml:lang="' . esc_attr( $lang ) . '"'; 2637 } 2636 2638 } 2637 2639
Note: See TracChangeset
for help on using the changeset viewer.