Changeset 13959
- Timestamp:
- 08/09/2024 07:12:35 AM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
r13958 r13959 154 154 unset( $_requires_plugins, $unmet_dependencies ); 155 155 156 /* 157 * If a tag has been deleted, we should also remove any unconfirmed releases. 158 * NOTE: remove_release() will not remove a confirmed release, but will remove a discarded release. 159 * 160 * Additionally; this must occur before the below release confirmation checks, 161 * if the trunk readme has it's stable_tag set to one of these deleted (now non-existent) tags, 162 * then $stable_tag will be set to the fallback 'trunk', causing the RC checks to fail. 163 */ 164 foreach ( $svn_tags_deleted as $svn_deleted_tag ) { 165 if ( Plugin_Directory::remove_release( $plugin, $svn_deleted_tag ) ) { 166 echo "Plugin tag {$svn_deleted_tag} deleted; release removed.\n"; 167 } 168 } 169 156 170 // Release confirmation 157 171 if ( $plugin->release_confirmation ) { 172 // If the stable tag is trunk, we shouldn't continue, as we don't support that for RC. 158 173 if ( 'trunk' === $stable_tag ) { 159 174 throw new Exception( 'Plugin cannot be released from trunk due to release confirmation being enabled.' ); … … 206 221 207 222 echo "Plugin release {$svn_changed_tag} not confirmed; email triggered.\n"; 208 }209 }210 211 // Check to see if any of the releases were deleted.212 foreach ( $svn_tags_deleted as $svn_deleted_tag ) {213 // Note: Confirmed releases will not be deleted, only unconfirmed ones.214 if ( Plugin_Directory::remove_release( $plugin, $svn_deleted_tag ) ) {215 echo "Plugin tag {$svn_deleted_tag} deleted; release removed.\n";216 223 } 217 224 }
Note: See TracChangeset
for help on using the changeset viewer.