Skip to content

Commit 092e55d

Browse files
authored
Merge pull request #36 from Automattic/fix-24/flag-strip_tags
Flag strip_tags and suggest wp_strip_all_tags instead
2 parents 682ed63 + dec3814 commit 092e55d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

WordPressVIPMinimum/Sniffs/VIP/RestrictedFunctionsSniff.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ public function getGroups() {
5555
'attachment_url_to_postid',
5656
),
5757
),
58+
'strip_tags' => array(
59+
'type' => 'error',
60+
'message' => '%s does not strip CSS and JS in between the script and style tags. `wp_strip_all_tags` should be used instead.',
61+
'functions' => array(
62+
'strip_tags'
63+
),
64+
),
5865
);
5966

6067
return array_merge( $original_groups, $new_groups );

0 commit comments

Comments
 (0)