Making WordPress.org

Changeset 4478


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

Hreflang tags: Hide the emojis non-lang langtag.

Props joostdevalk.
Fixes #2305.

Location:
sites/trunk/wordpress.org/public_html/wp-content
Files:
2 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 {
  • 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.