Making WordPress.org

Changeset 13935


Ignore:
Timestamp:
07/30/2024 02:29:38 AM (7 weeks ago)
Author:
dd32
Message:

Plugin Directory: Release Confirmations: Check to see if a release required confirmation before importing it.

When a plugin first enables release confirmation, there won't be any confirmation metadata for a release, as it didn't require confirmation.
Release Confirmations should only apply for future releaess, not existing releaess, so we should allow modifications to the existing versions.

See https://wordpress.slack.com/archives/C1LBM36LC/p1722304228950529
See #7696.

File:
1 edited

Legend:

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

    r13876 r13935  
    261261            }
    262262
    263             // Check that the tag is approved.
    264             if ( ! $release['confirmed'] ) {
     263            // Check that the tag is approved (If the release needed to be confirmed).
     264            if ( ! $release['confirmed'] && $release['confirmations_required'] ) {
    265265
    266266                if ( ! in_array( $last_committer, $release['committer'], true ) ) {
Note: See TracChangeset for help on using the changeset viewer.