Making WordPress.org


Ignore:
Timestamp:
04/28/2016 05:40:32 PM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Allow authors to update their plugin submissions.

If the initial version of a plugin does not satisfy review requirements, plugin
authors need a way to update their plugin for further review.
This now adds subsequent zip files by the same author to existing tickets and
adjusts logic and UI in a few places to handle multiple zip files.

See #1570.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php

    r3029 r3034  
    7979        }
    8080
    81         $attachment    = current( $attachments );
     81        $attachment    = end( $attachments );
    8282        $plugin_author = get_user_by( 'id', $post->post_author );
    8383
     
    102102        ) );
    103103
    104         // Delete zip.
    105         wp_delete_attachment( $attachment->ID, true );
     104        // Delete zips.
     105        foreach ( $attachments as $attachment ) {
     106            wp_delete_attachment( $attachment->ID, true );
     107        }
    106108
    107109        // Grant commit access.
Note: See TracChangeset for help on using the changeset viewer.