Making WordPress.org


Ignore:
Timestamp:
04/25/2016 03:38:34 PM (10 years ago)
Author:
ocean90
Message:

Translate: Refactor the Custom Routes plugin to use an autoloader.

See #1682.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc
Files:
1 added
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/routes/class-stats.php

    r2999 r3002  
    11<?php
     2
     3namespace WordPressdotorg\GlotPress\Routes\Routes;
     4
     5use GP;
     6use GP_Route;
     7
    28/**
    39 * Stats Route Class.
     
    511 * Provides the route for translate.wordpress.org/stats.
    612 */
    7 class WPorg_GP_Route_Stats extends GP_Route {
     13class Stats extends GP_Route {
    814
    915    public function get_stats_overview() {
     
    2228
    2329        // I'm sure there's somewhere to fetch these from statically defined
    24         $wp_project = GP::$project->by_path('wp');
     30        $wp_project = GP::$project->by_path( 'wp' );
    2531        foreach ( GP::$project->find_many( array( 'parent_project_id' => $wp_project->id, 'active' => 1 ), 'name ASC' ) as $wp_sub_project ) {
    2632            // Prefix the WordPress projects...
     
    7581        $parent_project_ids = implode(',', array(
    7682            GP::$project->by_path( 'wp-plugins' )->id,
    77             GP::$project->by_path( 'wp-themes' )->id
     83            GP::$project->by_path( 'wp-themes' )->id,
    7884        ) );
    7985        $sql = "SELECT
Note: See TracChangeset for help on using the changeset viewer.