Changeset 36802 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 03/02/2016 04:10:00 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r36698 r36802 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 || preg_match( '/[^a-zA-Z0-9-]/', $output ) ) { 717 $output = get_locale(); 718 $output = str_replace( '_', '-', $output ); 719 } 713 720 break; 714 721 case 'text_direction':
Note: See TracChangeset
for help on using the changeset viewer.