Skip to content

Commit e19cec4

Browse files
committed
Seed options whenever plugin is activated or options page is viewed.
1 parent 3c5189f commit e19cec4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Controller.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ public static function saveOption( string $name, $value ) : void {
233233
}
234234

235235
public static function renderS3Page() : void {
236+
self::seedOptions();
237+
236238
$view = [];
237239
$view['nonce_action'] = 'wp2static-s3-options';
238240
$view['uploads_path'] = \WP2Static\SiteInfo::getPath( 'uploads' );
@@ -280,9 +282,7 @@ public static function activate_for_single_site() : void {
280282

281283
$options = self::getOptions();
282284

283-
if ( ! isset( $options['s3Bucket'] ) ) {
284-
self::seedOptions();
285-
}
285+
self::seedOptions();
286286
}
287287

288288
public static function deactivate_for_single_site() : void {

0 commit comments

Comments
 (0)