Skip to content

Commit a404967

Browse files
committed
set the instance ID property after generating it
1 parent 02ed9b6 commit a404967

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wc-am-client.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ public function activation() {
441441

442442
if ( get_option( $this->data_key ) === false || $instance_exists === false ) {
443443
if ( $instance_exists === false ) {
444-
update_option( $this->wc_am_instance_key, wp_generate_password( 12, false ) );
444+
$this->wc_am_instance_id = wp_generate_password( 12, false );
445+
update_option( $this->wc_am_instance_key, $this->wc_am_instance_id );
445446
}
446447

447448
update_option( $this->wc_am_deactivate_checkbox_key, 'on' );

0 commit comments

Comments
 (0)