WordPress.org

Making WordPress.org

Changeset 6119


Ignore:
Timestamp:
11/14/17 06:15:25 (5 weeks ago)
Author:
SergeyBiryukov
Message:

Plugin Directory: Stop processing the upload if the developer already has a plugin in the review queue.

Fixes #3251. See #2386.

File:
1 edited

Legend:

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

    r6046 r6119  
    4848            $upload_result = false; 
    4949 
    50             if ( ! empty( $_POST['_wpnonce'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'wporg-plugins-upload' ) && 'upload' === $_POST['action'] ) : 
     50            if ( 
     51                ! empty( $_POST['_wpnonce'] ) 
     52                && wp_verify_nonce( $_POST['_wpnonce'], 'wporg-plugins-upload' ) 
     53                && 'upload' === $_POST['action'] 
     54                && ! $submitted_counts->total 
     55            ) : 
    5156                if ( UPLOAD_ERR_OK === $_FILES['zip_file']['error'] ) : 
    5257                    $uploader      = new Upload_Handler; 
Note: See TracChangeset for help on using the changeset viewer.