Skip to content

Commit

Permalink
reset GTmetrix API key if updating from older version.
Browse files Browse the repository at this point in the history
  • Loading branch information
futtta committed Mar 1, 2020
1 parent d9b62d3 commit 373f631
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions asyncjsBackendClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ public function aj_admin_init() {
// upgrade from 2.18.06.13, enable aj for logged users & checkout/ cart to ensure non-regression
update_option( 'aj_enabled_logged', 1 );
update_option( 'aj_enabled_shop', 1 );
} else if ( $aj_version < '2.20.03.01' ) {
// reset gtmetrix API key which *could* have been used to inject malicious JavaScript.
update_option( 'aj_gtmetrix_api_key', '');
}

if ( $aj_version != AJ_VERSION ) {
Expand Down

0 comments on commit 373f631

Please sign in to comment.