Changeset 13711 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
- Timestamp:
- 05/16/2024 03:06:24 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
r13637 r13711 78 78 * @param string $plugin_slug The slug of the plugin to import. 79 79 * @param array $svn_changed_tags A list of tags/trunk which the SVN change touched. Optional. 80 * @param array $svn_tags_deleted A list of tags/trunk which were deleted in the SVN change. Optional. 80 81 * @param array $svn_revision_triggered The SVN revision which this import has been triggered by. Optional. 81 82 */ 82 public function import_from_svn( $plugin_slug, $svn_changed_tags = array( 'trunk' ), $svn_ revision_triggered = 0 ) {83 public function import_from_svn( $plugin_slug, $svn_changed_tags = array( 'trunk' ), $svn_tags_deleted = array(), $svn_revision_triggered = 0 ) { 83 84 // Reset properties. 84 85 $this->warnings = []; … … 192 193 193 194 echo "Plugin release {$svn_changed_tag} not confirmed; email triggered.\n"; 195 } 196 } 197 198 // Check to see if any of the releases were deleted. 199 foreach ( $svn_tags_deleted as $svn_deleted_tag ) { 200 // Note: Confirmed releases will not be deleted, only unconfirmed ones. 201 if ( Plugin_Directory::remove_release( $plugin, $svn_deleted_tag ) ) { 202 echo "Plugin tag {$svn_deleted_tag} deleted; release removed.\n"; 194 203 } 195 204 }
Note: See TracChangeset
for help on using the changeset viewer.