Making WordPress.org

Changeset 13117


Ignore:
Timestamp:
01/16/2024 05:13:53 AM (14 months ago)
Author:
dd32
Message:

Plugin Directory: Review Tools: Allow the reviewer to upload a new .zip to the plugin post.

Props davidperez for the report.
See #7384.

File:
1 edited

Legend:

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

    r13115 r13117  
    198198
    199199        // Is there already a plugin with the same slug by a different author?
    200         if ( $plugin_post && $plugin_post->post_author != get_current_user_id() ) {
     200        if (
     201            ( $plugin_post && $plugin_post->post_author != get_current_user_id() ) &&
     202            ! current_user_can( 'edit_post', $plugin_post ) /* reviewer uploading via wp-admin */
     203        ) {
    201204            $error = __( 'Error: The plugin already exists.', 'wporg-plugins' );
    202205
Note: See TracChangeset for help on using the changeset viewer.