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 | } |