@@ -37,7 +37,8 @@ |
||
37 | 37 | // Load the Welcome class. |
38 | 38 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/welcome.php'; |
39 | 39 | |
40 | - if ( isset( $_GET['page'] ) && 'monsterinsights-onboarding' === $_GET['page'] ) { // WPCS: CSRF ok, input var ok. |
|
40 | + if ( isset( $_GET['page'] ) && 'monsterinsights-onboarding' === $_GET['page'] ) { |
|
41 | +// WPCS: CSRF ok, input var ok. |
|
41 | 42 | // Only load the Onboarding wizard if the required parameter is present. |
42 | 43 | require_once MONSTERINSIGHTS_PLUGIN_DIR . 'lite/includes/admin/onboarding-wizard.php'; |
43 | 44 | } |
@@ -52,7 +52,8 @@ |
||
52 | 52 | // Check for wizard-specific parameter |
53 | 53 | // Allow plugins to disable the onboarding wizard |
54 | 54 | // Check if current user is allowed to save settings. |
55 | - if ( ! ( isset( $_GET['page'] ) || 'monsterinsights-onboarding' !== $_GET['page'] || apply_filters( 'monsterinsights_enable_onboarding_wizard', true ) || ! current_user_can( 'monsterinsights_save_settings' ) ) ) { // WPCS: CSRF ok, input var ok. |
|
55 | + if ( ! ( isset( $_GET['page'] ) || 'monsterinsights-onboarding' !== $_GET['page'] || apply_filters( 'monsterinsights_enable_onboarding_wizard', true ) || ! current_user_can( 'monsterinsights_save_settings' ) ) ) { |
|
56 | +// WPCS: CSRF ok, input var ok. |
|
56 | 57 | return; |
57 | 58 | } |
58 | 59 |
@@ -28,7 +28,8 @@ |
||
28 | 28 | delete_transient( '_monsterinsights_activation_redirect' ); |
29 | 29 | |
30 | 30 | // Bail if activating from network, or bulk. |
31 | - if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) { // WPCS: CSRF ok, input var ok. |
|
31 | + if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) { |
|
32 | +// WPCS: CSRF ok, input var ok. |
|
32 | 33 | return; |
33 | 34 | } |
34 | 35 |
@@ -276,7 +276,7 @@ |
||
276 | 276 | // 3. License key not valid/okay for pro |
277 | 277 | if ( monsterinsights_is_pro_version() ) { |
278 | 278 | $message = ''; |
279 | - if ( MonsterInsights()->license->get_site_license_key() ){ |
|
279 | + if ( MonsterInsights()->license->get_site_license_key() ) { |
|
280 | 280 | if ( MonsterInsights()->license->site_license_expired() ) { |
281 | 281 | $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
282 | 282 | } else if ( MonsterInsights()->license->site_license_disabled() ) { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | <?php |
51 | 51 | } |
52 | 52 | |
53 | -function monsterinsights_tools_url_builder_tab(){ |
|
53 | +function monsterinsights_tools_url_builder_tab() { |
|
54 | 54 | do_action( 'monsterinsights_tools_url_builder_tab' ); |
55 | 55 | } |
56 | 56 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | </th> |
71 | 71 | <td> |
72 | 72 | <?php |
73 | - if ( ! empty( $_REQUEST['action'] ) && ! empty( $_REQUEST['result'] ) && $_REQUEST['action'] === 'import' && $_REQUEST['result'] === 'success' ){ |
|
73 | + if ( ! empty( $_REQUEST['action'] ) && ! empty( $_REQUEST['result'] ) && $_REQUEST['action'] === 'import' && $_REQUEST['result'] === 'success' ) { |
|
74 | 74 | echo MonsterInsights()->notices->display_inline_notice( 'monsterinsights_standard_notice', '', __( 'Successfully imported settings!','google-analytics-for-wordpress'), 'success', false, array() ); |
75 | 75 | } |
76 | 76 | ?> |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | return; |
135 | 135 | } |
136 | 136 | |
137 | - if ( $_POST['monsterinsights_action'] !== 'monsterinsights_export_settings' ){ |
|
137 | + if ( $_POST['monsterinsights_action'] !== 'monsterinsights_export_settings' ) { |
|
138 | 138 | return; |
139 | 139 | } |
140 | 140 | |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | return; |
166 | 166 | } |
167 | 167 | |
168 | - if ( $_POST['monsterinsights_action'] !== 'monsterinsights_import_settings' ){ |
|
168 | + if ( $_POST['monsterinsights_action'] !== 'monsterinsights_import_settings' ) { |
|
169 | 169 | return; |
170 | 170 | } |
171 | 171 |
@@ -87,7 +87,8 @@ |
||
87 | 87 | wp_cache_flush(); |
88 | 88 | $cachec = true; |
89 | 89 | } |
90 | - } else { // if existing install |
|
90 | + } else { |
|
91 | +// if existing install |
|
91 | 92 | if ( version_compare( $version, '6.0.11', '<' ) ) { |
92 | 93 | if ( ! $cachec ) { |
93 | 94 | wp_cache_flush(); |
@@ -87,7 +87,7 @@ |
||
87 | 87 | $download_extensions = array( $download_extensions ); |
88 | 88 | } |
89 | 89 | $i = 0; |
90 | - foreach( $download_extensions as $extension ){ |
|
90 | + foreach( $download_extensions as $extension ) { |
|
91 | 91 | $download_extensions[ $i ] = esc_js( trim( $extension ) ); |
92 | 92 | $i++; |
93 | 93 | } |