WordPress.org

Making WordPress.org

Changeset 5232


Ignore:
Timestamp:
04/03/2017 08:12:24 PM (2 years ago)
Author:
Otto42
Message:

Re-enable uploads only for the plugins team at this time, for testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php

    r5173 r5232  
    5858     */
    5959    public function process_upload() {
    60         // Temporarily disable submissions.
    61         return __( 'Plugin Submissions are temporarily disabled.', 'wporg-plugins' );
     60        // Temporarily disable submissions. Allow reviewers to upload for testing.
     61        if (! current_user_can( 'plugin_approve' ) ) {
     62            return __( 'Plugin Submissions are temporarily disabled.', 'wporg-plugins' );
     63        }
    6264
    6365        $zip_file = $_FILES['zip_file']['tmp_name'];
Note: See TracChangeset for help on using the changeset viewer.