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/metabox/class-review-tools.php

    r2978 r3034  
    99class Review_Tools {
    1010    static function display() {
    11         $post      = get_post();
    12         $zip_files = get_attached_media( 'application/zip', $post );
     11        $post = get_post();
    1312
    14         if ( $zip_files ) {
    15             $zip_file = current( $zip_files );
    16             $zip_url  = wp_get_attachment_url( $zip_file->ID );
     13        foreach ( get_attached_media( 'application/zip', $post ) as $zip_file ) {
     14            $zip_url = wp_get_attachment_url( $zip_file->ID );
     15
    1716            printf( '<p>' . __( '<strong>Zip file:</strong> %s', 'wporg-plugins' ) . '</p>',
    1817                sprintf( '<a href="%s">%s</a>', esc_url( $zip_url ), esc_html( $zip_url ) )
Note: See TracChangeset for help on using the changeset viewer.