Skip to content

Commit 57a45e1

Browse files
committed
Store the rollout strategy with the release.
1 parent 01e53d9 commit 57a45e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-release-confirmation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,11 @@ public function confirm_release( $request ) {
231231
$result['fully_confirmed'] = true;
232232
}
233233

234+
// Store the release strategy if provided, overwriting any previous choice.
235+
if ( isset( $request['rollout_strategy'] ) ) {
236+
$release['rollout_strategy'] = $request['rollout_strategy'];
237+
}
238+
234239
Plugin_Directory::add_release( $plugin, $release );
235240

236241
// Trigger the import for the plugin.

0 commit comments

Comments
 (0)