Skip to content

Commit 581f612

Browse files
committed
Update NonceVerificationUnitTest.1.inc now that there are dedicated tests for the is_in_function_call() method
- Remove the @Covers is_in_function_call() tag - Remove code comment. The tests are still relevant for the sniff, but are not anymore specifically to test is_in_function_call().
1 parent 404c5c7 commit 581f612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/Tests/Security/NonceVerificationUnitTest.1.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function function_containing_nested_closure() {
291291
};
292292
}
293293

294-
// Tests specifically for the ContextHelper::is_in_function_call().
294+
295295
function disallow_custom_unslash_before_noncecheck_via_method() {
296296
$var = MyClass::stripslashes_from_strings_only( $_POST['foo'] ); // Bad.
297297
wp_verify_nonce( $var );

0 commit comments

Comments
 (0)