Making WordPress.org


Ignore:
Timestamp:
01/15/2024 05:23:52 AM (2 years ago)
Author:
dd32
Message:

Plugin Directory: Allow plugins to upload additional versions for review.

This is currently limited to new plugins, which is prior to the first human review.

Iterations upon this will open it to plugins in the pending state as well, which is during the human review.

See #7384.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-zip-cleanup.php

    r13024 r13109  
    8888            delete_post_meta( $plugin->ID, '_submitted_zip_loc' );
    8989
     90            // Delete the file hash from the post.
     91            $file_hash = sha1_file( get_attached_file( $attachment ) );
     92            if ( $file_hash ) {
     93                delete_post_meta( $plugin->ID, 'uploaded_zip_hash', $file_hash );
     94            }
     95
    9096            // Include some log output for debugging.
    9197            $filename = basename( wp_get_attachment_url( $attachment->ID ) );
Note: See TracChangeset for help on using the changeset viewer.