Making WordPress.org

Changeset 14493


Ignore:
Timestamp:
07/28/2025 03:49:02 AM (11 months ago)
Author:
dd32
Message:

Plugin Directory: Only use the release confirmation time when the release required confirmation.

Followup to [14492].
See #8009.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php

    r14492 r14493  
    518518
    519519        // If we've got a new version, store the last version in the plugin meta.
    520         if ( $version && $version !== $post->version ) {
    521             update_post_meta( $plugin->ID, 'last_version', wp_slash( $post->version ) );
     520        if ( $version && $version !== $plugin->version ) {
     521            update_post_meta( $plugin->ID, 'last_version', wp_slash( $plugin->version ) );
    522522            update_post_meta( $plugin->ID, 'last_stable_tag', wp_slash( $current_stable_tag ) );
    523             update_post_meta( $plugin->ID, 'last_version_date', wp_slash( $post->version_date ) );
     523            update_post_meta( $plugin->ID, 'last_version_date', wp_slash( $plugin->version_date ) );
    524524
    525525            // Keep the date of the last version change, this often differs from the last_updated/post_modified dates.
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-api-update-updater.php

    r14492 r14493  
    9595        }
    9696
    97         $release = Plugin_Directory::get_release( $post->ID, $version );
    98         if ( $release ) {
     97        $release = Plugin_Directory::get_release( $post, $version );
     98        if (
     99            $release &&
     100            $release->confirmations_required &&
     101            $release['confirmations']
     102        ) {
    99103            $meta['release_time'] = max( $release['confirmations'] );
    100104        }
Note: See TracChangeset for help on using the changeset viewer.