From 7587f5786d49d515d39c4b82daf84c71207c25a5 Mon Sep 17 00:00:00 2001 From: Rebecca Hum <16962021+rebeccahum@users.noreply.github.com> Date: Tue, 9 Mar 2021 08:27:40 -0700 Subject: [PATCH] WordPress-VIP-Go: Remove WordPress.WP.GlobalVariablesOverride.Prohibited --- WordPress-VIP-Go/ruleset-test.inc | 10 +++++----- WordPress-VIP-Go/ruleset-test.php | 2 -- WordPress-VIP-Go/ruleset.xml | 4 ---- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/WordPress-VIP-Go/ruleset-test.inc b/WordPress-VIP-Go/ruleset-test.inc index a41c38e8..e3c4f98c 100644 --- a/WordPress-VIP-Go/ruleset-test.inc +++ b/WordPress-VIP-Go/ruleset-test.inc @@ -182,10 +182,10 @@ _ex( $some_nasty_var, 'context' ); // Error. echo esc_html_x( 'Something', 'context' ); // Ok. echo esc_html_x( $some_nasty_var, 'context' ); // Ok. -// WordPress.WP.GlobalVariablesOverride.OverrideProhibited -global $wpdb; -$wpdb = 'test'; // Error. -$GLOBALS['domain']['subkey'] = 'something else'; // Error. + + + + // WordPress.WP.EnqueuedResources.NonEnqueuedScript echo wp_kses( '