WordPress.org

Making WordPress.org


Ignore:
Timestamp:
11/22/2015 08:01:41 PM (5 years ago)
Author:
ocean90
Message:

Translate: Convert the GP plugin "wporg-routes" to a WP plugin.

See #1352.

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

Legend:

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

    r2089 r2109  
    11<?php
    22
    3 class GP_WPorg_Route_WP_Plugins extends GP_Route {
     3class WPorg_GP_Route_WP_Plugins extends GP_Route {
    44
    55    public function get_plugin_projects( $project_slug ) {
    6         global $gpdb;
     6        global $wpdb;
    77
    88        $project_path = 'wp-plugins/' . $project_slug;
     
    1212        }
    1313
    14         $rows = $gpdb->get_results( "
     14        $rows = $wpdb->get_results( "
    1515            SELECT
    1616                path, locale, locale_slug,
     
    1818                stats.waiting+stats.fuzzy as waiting_strings,
    1919                stats.untranslated as untranslated
    20             FROM {$gpdb->prefix}project_translation_status stats
    21                 LEFT JOIN {$gpdb->prefix}projects p ON stats.project_id = p.id
     20            FROM {$wpdb->prefix}project_translation_status stats
     21                LEFT JOIN {$wpdb->prefix}projects p ON stats.project_id = p.id
    2222            WHERE
    2323                p.parent_project_id = '{$project->id}'
Note: See TracChangeset for help on using the changeset viewer.