Making WordPress.org


Ignore:
Timestamp:
04/25/2016 03:38:34 PM (11 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-wp-plugins.php

    r2999 r3002  
    11<?php
    22
    3 class WPorg_GP_Route_WP_Plugins extends WPorg_GP_Route_WP_Directory {
     3namespace WordPressdotorg\GlotPress\Routes\Routes;
     4
     5use GP;
     6
     7class WP_Plugins extends WP_Directory {
    48
    59        /**
    … …  
    105109         */
    106110        public function get_plugin_contributors( $project_slug ) {
    107                 global $wpdb;
    108 
    109111                $project_path = 'wp-plugins/' . $project_slug;
    110112                $project = GP::$project->by_path( $project_path );
    … …  
    169171                $default = '<div class="default-icon"><span class="dashicons dashicons-admin-plugins"></span></div>';
    170172
     173                $icon = '';
    171174                if ( function_exists( 'wporg_get_plugin_icon' ) ) {
    172175                        $icon = wporg_get_plugin_icon( $project->slug, $size );
Note: See TracChangeset for help on using the changeset viewer.