Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions WordPress/Sniffs/Security/EscapeOutputSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@
use EscapingFunctionsTrait;
use PrintingFunctionsTrait;

/**
* Custom list of functions whose output is already considered escaped.

Check failure on line 56 in WordPress/Sniffs/Security/EscapeOutputSniff.php

View workflow job for this annotation

GitHub Actions / Run code sniffs

Expected 5 spaces before asterisk; 1 found
*

Check failure on line 57 in WordPress/Sniffs/Security/EscapeOutputSniff.php

View workflow job for this annotation

GitHub Actions / Run code sniffs

Expected 5 spaces before asterisk; 1 found
* @var array<string, bool>

Check failure on line 58 in WordPress/Sniffs/Security/EscapeOutputSniff.php

View workflow job for this annotation

GitHub Actions / Run code sniffs

Expected 5 spaces before asterisk; 1 found
*/

Check failure on line 59 in WordPress/Sniffs/Security/EscapeOutputSniff.php

View workflow job for this annotation

GitHub Actions / Run code sniffs

Expected 5 spaces before asterisk; 1 found
protected $customAutoEscapedFunctions = array(

Check failure on line 60 in WordPress/Sniffs/Security/EscapeOutputSniff.php

View workflow job for this annotation

GitHub Actions / Run code sniffs

Line indented incorrectly; expected at least 1 tabs, found 0
'do_blocks' => true,

Check failure on line 61 in WordPress/Sniffs/Security/EscapeOutputSniff.php

View workflow job for this annotation

GitHub Actions / Run code sniffs

Tabs must be used to indent lines; spaces are not allowed
);

Check failure on line 62 in WordPress/Sniffs/Security/EscapeOutputSniff.php

View workflow job for this annotation

GitHub Actions / Run code sniffs

Line indented incorrectly; expected at least 1 tabs, found 0


/**
* Printing functions that incorporate unsafe values.
*
Expand Down
Loading