Skip to content

Commit

Permalink
SanitizationHelperTrait::is_sanitized(): minor doc tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Aug 18, 2023
1 parent 063417d commit 2c66696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WordPress/Helpers/SanitizationHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public function is_only_sanitized( File $phpcsFile, $stackPtr ) {
* check for unslashing issues.
* Defaults to `null` (skip unslashing checks).
*
* @return bool Whether the token being sanitized.
* @return bool Whether the token is being sanitized.
*/
public function is_sanitized( File $phpcsFile, $stackPtr, $unslash_callback = null ) {
$tokens = $phpcsFile->getTokens();
Expand Down Expand Up @@ -368,7 +368,7 @@ public function is_sanitized( File $phpcsFile, $stackPtr, $unslash_callback = nu
if ( UnslashingFunctionsHelper::is_unslashing_function( $functionName ) ) {
$is_unslashed = true;

// Check is any of the remaining (sanitizing) functions is used.
// Check whether this function call is wrapped within a sanitizing function.
$higherFunctionPtr = ContextHelper::is_in_function_call( $phpcsFile, $functionPtr, $sanitizing_functions );

// If there is no other valid function being used, this value is unsanitized.
Expand Down

0 comments on commit 2c66696

Please sign in to comment.