Ticket #33511: 33511.2.patch
File 33511.2.patch, 906 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/general-template.php
708 708 $output = $wp_version; 709 709 break; 710 710 case 'language': 711 $output = get_locale(); 712 $output = str_replace('_', '-', $output); 711 /* translators: Translate this to the correct language tag for your locale, 712 * see https://www.w3.org/International/articles/language-tags/ for reference. 713 * Do not translate into your own language. 714 */ 715 $output = __( 'html_lang_attribute' ); 716 if ( 'html_lang_attribute' === $output || false !== strpos( $output, '_' ) ) { 717 $output = get_locale(); 718 $output = str_replace( '_', '-', $output ); 719 } 713 720 break; 714 721 case 'text_direction': 715 722 _deprecated_argument( __FUNCTION__, '2.2', sprintf(