Making WordPress.org

Ticket #7160: 7160.2.patch

File 7160.2.patch, 3.5 KB (added by upadalavipul, 3 years ago)

Few more files in needs to improvement.

  • global.wordpress.org/public_html/wp-content/mu-plugins/downloads/rosetta-downloads.php

     
    3838
    3939        /**
    4040         * Returns download counts for release packages of the current stable branch.
     41         *
     42         * @global wpdb $wpdb WordPress database abstraction object.
    4143         *
    4244         * @return array Download counts per locale.
    4345         */
     
    7375
    7476        /**
    7577         * Returns download counts for language packs of the current stable branch.
     78         *
     79         * @global wpdb $wpdb WordPress database abstraction object.
    7680         *
    7781         * @return array Download counts per locale.
    7882         */
  • global.wordpress.org/public_html/wp-content/mu-plugins/roles/cross-locale-pte.php

     
    192192
    193193        /**
    194194         * Retrieves the projects for which a user has cross-locale PTE permissions.
     195         *
     196         * @global wpdb $wpdb WordPress database abstraction object.
    195197         *
    196198         * @param int $user_id User ID.
    197199         * @return array List of project IDs.
     
    209211        }
    210212        /**
    211213         * Retrieves the projects for which a user has cross-locale PTE permissions.
     214         *
     215         * @global wpdb $wpdb WordPress database abstraction object.
    212216         *
    213217         * @return array List of User IDs.
    214218         */
     
    244248
    245249        /**
    246250         * Check for the Cross-Locale PTE permission for the project.
     251         *
     252         * @global wpdb $wpdb WordPress database abstraction object.
    247253         *
    248254         * @param WP_User $user   The user.
    249255         * @param int $project_id The Project ID.
  • global.wordpress.org/public_html/wp-content/mu-plugins/roles/rosetta-roles.php

     
    383383
    384384        /**
    385385         * Removes a translation editor.
     386         *
     387         * @global wpdb $wpdb WordPress database abstraction object.
    386388         *
    387389         * @param int|WP_User $user User ID or object.
    388390         * @return bool True on success, false on failure.
     
    418420
    419421        /**
    420422         * Creates or updates a translation editor.
     423         *
     424         * @global wpdb $wpdb WordPress database abstraction object.
    421425         *
    422426         * @param int|WP_User $user     User ID or object.
    423427         * @param array       $projects The projects to which the user should get assigned.
     
    508512        /**
    509513         * Handles the update of the translation editor badges on
    510514         * profiles.wordpress.org.
     515         *
     516         * @global wpdb $wpdb WordPress database abstraction object.
    511517         *
    512518         * @param \WP_User $user The user object of the translation editor.
    513519         */
     
    712718
    713719        /**
    714720         * Retrieves the assigned projects of a user
     721         *
     722         * @global wpdb $wpdb WordPress database abstraction object.
    715723         *
    716724         * @param int $user_id User ID.
    717725         * @return array List of project IDs.
     
    891899        /**
    892900         * Fetches all parent projects and their direct sub-projects like 'wp'
    893901         * and 'wp/dev' or 'wp-plugins' and 'wp-plugins/wordpress-importer'.
     902         *
     903         * @global wpdb $wpdb WordPress database abstraction object.
    894904         *
    895905         * @return array List of projects.
    896906         */