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/themes/pub/wporg-plugins/functions.php

    r4473 r4478  
    182182            }
    183183
     184            $hreflang = false;
     185
    184186            // Note that Google only supports ISO 639-1 codes.
    185187            if ( isset( $gp_locale->lang_code_iso_639_1 ) && isset( $gp_locale->country_code ) ) {
     
    193195            }
    194196
    195             if ( $hreflang ) {
     197            if ( $hreflang && 'art' !== $hreflang ) {
    196198                $sites[ $site->locale ]->hreflang = strtolower( $hreflang );
    197199            } else {
Note: See TracChangeset for help on using the changeset viewer.