Skip to content

Commit

Permalink
Merge pull request #8 from mihdan/master
Browse files Browse the repository at this point in the history
Set `autoload = no` for performance
  • Loading branch information
aristath authored Feb 15, 2020
2 parents beb5b2b + 5831dc1 commit 3904e0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Dismiss.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,6 @@ private function dismiss_notice() {
update_user_meta( get_current_user_id(), "{$this->prefix}_{$this->id}", true );
return;
}
update_option( "{$this->prefix}_{$this->id}", true );
update_option( "{$this->prefix}_{$this->id}", true, false );
}
}
2 changes: 1 addition & 1 deletion src/Notice.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function __construct( $id, $title, $message, $options = [] ) {
$this->allowed_html = apply_filters( 'wptrt_admin_notices_allowed_html', $this->allowed_html );

// Instantiate the Dismiss object.
$this->dismiss = new Dismiss( $this->id, $this->options['option_prefix'] );
$this->dismiss = new Dismiss( $this->id, $this->options['option_prefix'], $this->options['scope'] );
}

/**
Expand Down

0 comments on commit 3904e0d

Please sign in to comment.