WordPress.org

Making WordPress.org

Changeset 2119


Ignore:
Timestamp:
11/23/2015 08:12:18 PM (6 years ago)
Author:
ocean90
Message:

Translate: After [2118] make the check specific to missing "code" sub-projects.

Location:
sites/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/wp-plugins.php

    r2118 r2119  
    5858        }
    5959
    60         // If the plugin has only one sub-project something went wrong, likely a missing
    61         // text domain which is why no 'code' projects will be created.
    62         $has_error = count( $sub_projects ) < 2;
     60        // Check if the plugin has at least one code project. These won't be created if a plugin
     61        // has no text domain defined.
     62        $sub_projects = array_keys( $sub_projects );
     63        $has_error = ( ! in_array( 'dev', $sub_projects ) && ! in_array( 'stable', $sub_projects ) );
    6364
    6465        unset( $project_path, $locale_key, $rows, $set, $sub_project, $sub_projects );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/routes/wp-plugins.php

    r2118 r2119  
    5858        }
    5959
    60         // If the plugin has only one sub-project something went wrong, likely a missing
    61         // text domain which is why no 'code' projects will be created.
    62         $has_error = count( $sub_projects ) < 2;
     60        // Check if the plugin has at least one code project. These won't be created if a plugin
     61        // has no text domain defined.
     62        $sub_projects = array_keys( $sub_projects );
     63        $has_error = ( ! in_array( 'dev', $sub_projects ) && ! in_array( 'stable', $sub_projects ) );
    6364
    6465        unset( $project_path, $locale_key, $rows, $set, $sub_project, $sub_projects );
Note: See TracChangeset for help on using the changeset viewer.