File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -3568,12 +3568,14 @@ function get_language_attributes( $doctype = 'html' ) {
35683568 if ( function_exists ( 'is_rtl ' ) && is_rtl () )
35693569 $ attributes [] = 'dir="rtl" ' ;
35703570
3571- if ( $ lang = get_bloginfo ('language ' ) ) {
3572- if ( get_option ('html_type ' ) == 'text/html ' || $ doctype == 'html ' )
3573- $ attributes [] = "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+ }
35743575
3575- if ( get_option ('html_type ' ) != 'text/html ' || $ doctype == 'xhtml ' )
3576- $ attributes [] = "xml:lang= \"$ lang \"" ;
3576+ if ( get_option ( 'html_type ' ) != 'text/html ' || $ doctype == 'xhtml ' ) {
3577+ $ attributes [] = 'xml:lang=" ' . esc_attr ( $ lang ) . '" ' ;
3578+ }
35773579 }
35783580
35793581 $ output = implode (' ' , $ attributes );
Original file line number Diff line number Diff line change 44 *
55 * @global string $wp_version
66 */
7- $ wp_version = '5.0-alpha-42258 ' ;
7+ $ wp_version = '5.0-alpha-42259 ' ;
88
99/**
1010 * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
You can’t perform that action at this time.
0 commit comments