WordPress.org

Making WordPress.org

Changeset 1190


Ignore:
Timestamp:
01/26/2015 07:24:53 PM (7 years ago)
Author:
ocean90
Message:

WP i18n Teams: Avoid notices if locale has no site yet.

see #340.

File:
1 edited

Legend:

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

    r1170 r1190  
    131131
    132132        foreach ( $gp_locales as $locale ) {
    133             $subdomain = $wporg_data[ $locale->wp_locale ]->subdomain;
    134             $latest_release = $wporg_data[ $locale->wp_locale ]->latest_release;
     133            $subdomain = $latest_release = '';
     134            if ( ! empty( $wporg_data[ $locale->wp_locale ] ) ) {
     135                $subdomain = $wporg_data[ $locale->wp_locale ]->subdomain;
     136                $latest_release = $wporg_data[ $locale->wp_locale ]->latest_release;
     137            }
    135138            $release_status = self::get_locale_release_status( $subdomain, $latest_release );
    136139            $statuses[ $release_status ]++;
Note: See TracChangeset for help on using the changeset viewer.