Changeset 3034 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
- Timestamp:
- 04/28/2016 05:40:32 PM (9 years ago)
- 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 79 79 } 80 80 81 $attachment = current( $attachments );81 $attachment = end( $attachments ); 82 82 $plugin_author = get_user_by( 'id', $post->post_author ); 83 83 … … 102 102 ) ); 103 103 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 } 106 108 107 109 // Grant commit access.
Note: See TracChangeset
for help on using the changeset viewer.