Changeset 42265 for branches/4.9/src/wp-includes/general-template.php
- Timestamp:
- 11/29/2017 04:09:15 PM (8 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/general-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-includes/general-template.php
r42221 r42265 3569 3569 $attributes[] = 'dir="rtl"'; 3570 3570 3571 if ( $lang = get_bloginfo('language') ) { 3572 if ( get_option('html_type') == 'text/html' || $doctype == 'html' ) 3573 $attributes[] = "lang=\"$lang\""; 3574 3575 if ( get_option('html_type') != 'text/html' || $doctype == 'xhtml' ) 3576 $attributes[] = "xml:lang=\"$lang\""; 3571 if ( $lang = get_bloginfo( 'language' ) ) { 3572 if ( get_option( 'html_type' ) == 'text/html' || $doctype == 'html' ) { 3573 $attributes[] = 'lang="' . esc_attr( $lang ) . '"'; 3574 } 3575 3576 if ( get_option( 'html_type' ) != 'text/html' || $doctype == 'xhtml' ) { 3577 $attributes[] = 'xml:lang="' . esc_attr( $lang ) . '"'; 3578 } 3577 3579 } 3578 3580
Note: See TracChangeset
for help on using the changeset viewer.