Making WordPress.org


Ignore:
Timestamp:
01/28/2018 05:49:47 PM (7 years ago)
Author:
ocean90
Message:

Rosetta Roles: Link project names to their page on translate.wordpress.org.

Fixes #3228.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/rosetta-roles.php

    r5048 r6453  
    570570    public function ajax_rosetta_get_projects() {
    571571        $projects = $this->get_translate_projects();
     572        array_walk( $projects, function( $value ) {
     573            unset( $value->path ); // Path is not needed.
     574        } );
    572575        $project_tree = $this->get_project_tree( $projects, 0, 1 );
    573576
     
    699702
    700703        $_projects = $wpdb->get_results( '
    701             SELECT id, name, parent_project_id, slug
     704            SELECT id, name, parent_project_id, slug, path
    702705            FROM translate_projects
    703706            WHERE
Note: See TracChangeset for help on using the changeset viewer.