Changeset 13150
- Timestamp:
- 01/25/2024 06:08:50 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-blueprint.php
r13110 r13150 65 65 66 66 $zips = get_attached_media( 'application/zip', $plugin ); 67 // Return the first (is this correct?)67 // Return the last zip (the most recent?) 68 68 if ( $zips && count( $zips ) ) { 69 return wp_get_attachment_url( reset($zips)->ID );69 return wp_get_attachment_url( end($zips)->ID ); 70 70 } 71 71 return false;
Note: See TracChangeset
for help on using the changeset viewer.