Making WordPress.org


Ignore:
Timestamp:
07/02/2019 04:26:17 AM (7 years ago)
Author:
dd32
Message:

Plugin Directory: Avoid attempting to create hreflang tags for a locale if no subdomain exists for the locale.
This is most likely to be encountered in Meta Environments, but can exist on WordPress.org too.

File:
1 edited

Legend:

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

    r9012 r9013  
    858858            foreach ( $sites as $key => $site ) {
    859859                $gp_locale = \GP_Locales::by_field( 'wp_locale', $site->wp_locale );
    860                 if ( empty( $gp_locale ) ) {
     860                if ( empty( $gp_locale ) || ! isset( $subdomains[ $site->wp_locale ] ) ) {
    861861                    unset( $sites[ $key ] );
    862862                    continue;
Note: See TracChangeset for help on using the changeset viewer.