Making WordPress.org


Ignore:
Timestamp:
12/04/2016 08:48:33 PM (8 years ago)
Author:
dd32
Message:

Hreflang tags: Hide the emojis non-lang langtag.

Props joostdevalk.
Fixes #2305.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php

    r3388 r4478  
    10821082            }
    10831083
     1084            $hreflang = false;
     1085
    10841086            // Note that Google only supports ISO 639-1 codes.
    10851087            if ( isset( $gp_locale->lang_code_iso_639_1 ) && isset( $gp_locale->country_code ) ) {
     
    10931095            }
    10941096
    1095             if ( $hreflang ) {
     1097            if ( $hreflang && 'art' !== $hreflang ) {
    10961098                $sites[ $site->locale ]->hreflang = strtolower( $hreflang );
    10971099            } else {
Note: See TracChangeset for help on using the changeset viewer.