File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
plugins/performance-lab/includes
site-health/audit-autoloaded-options Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ function perflab_install_activate_plugin_callback(): void {
305
305
wp_die ( esc_html__ ( 'Missing required parameter. ' , 'performance-lab ' ) );
306
306
}
307
307
308
- $ plugin_slug = perflab_sanitize_plugin_slug ( wp_unslash ( $ _GET ['slug ' ] ) );
308
+ $ plugin_slug = perflab_sanitize_plugin_slug ( wp_unslash ( $ _GET ['slug ' ] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- perflab_sanitize_plugin_slug() is a sanitizing function.
309
309
if ( null === $ plugin_slug ) {
310
310
wp_die ( esc_html__ ( 'Invalid plugin. ' , 'performance-lab ' ) );
311
311
}
@@ -407,7 +407,7 @@ static function ( $name ) {
407
407
408
408
$ activated_plugin_slug = null ;
409
409
if ( isset ( $ _GET ['activate ' ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
410
- $ activated_plugin_slug = perflab_sanitize_plugin_slug ( wp_unslash ( $ _GET ['activate ' ] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
410
+ $ activated_plugin_slug = perflab_sanitize_plugin_slug ( wp_unslash ( $ _GET ['activate ' ] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- perflab_sanitize_plugin_slug() is a sanitizing function.
411
411
}
412
412
413
413
if ( null !== $ activated_plugin_slug ) {
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ function perflab_aao_handle_update_autoload(): void {
57
57
}
58
58
59
59
$ option_name = sanitize_text_field ( wp_unslash ( $ _GET ['option_name ' ] ) );
60
- $ autoload = rest_sanitize_boolean ( $ _GET ['autoload ' ] );
60
+ $ autoload = rest_sanitize_boolean ( wp_unslash ( $ _GET ['autoload ' ] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Won't be needed after <https://github.com/WordPress/WordPress-Coding-Standards/pull/2530>.
61
61
62
62
if ( ! current_user_can ( 'manage_options ' ) ) {
63
63
wp_die ( esc_html__ ( 'Permission denied. ' , 'performance-lab ' ) );
You can’t perform that action at this time.
0 commit comments