WordPress.org

Making WordPress.org


Ignore:
Timestamp:
03/30/2019 10:12:10 AM (6 months ago)
Author:
ocean90
Message:

Translate: Query variants of a locale in a more performant way.

Instead of querying for a specific list of projects, use the main WordPress core project (wp/dev) which is the canonical source for all available and active locales.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-project.php

    r8557 r8558  
    117117    } else {
    118118        $stable_project_slug = in_array( 'stable', $sub_project_slugs, true ) ? 'stable' : 'dev';
    119         $stable_project_name = 'stable' === $stable_project_slug ? 'Stable (latest release) ' : 'Development (trunk) ';
     119        $stable_project_name = 'stable' === $stable_project_slug ? 'Stable (latest release)' : 'Development (trunk)';
    120120        $status              = $sub_project_statuses[ $stable_project_slug ];
    121121        ?>
Note: See TracChangeset for help on using the changeset viewer.