Changeset 10215
- Timestamp:
- 08/28/2020 05:42:34 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r10214 r10215 1601 1601 ]; 1602 1602 1603 // Fill 1603 // Fill the $release with the newish data. This could/should use wp_parse_args()? 1604 1604 foreach ( $data as $k => $v ) { 1605 1605 $release[ $k ] = $v; … … 1608 1608 $releases = self::get_releases( $plugin ); 1609 1609 1610 // Find any other releases using this slug (as in the case of updates) and remove it. 1611 // Only one release can exist in any given tag. 1612 foreach ( $releases as $i => $r ) { 1613 if ( $r['tag'] === $release['tag'] ) { 1614 unset( $releases[ $i ] ); 1615 } 1616 } 1617 1618 // Add this release in 1610 1619 $releases[] = $release; 1611 1620
Note: See TracChangeset
for help on using the changeset viewer.