Skip to content

Commit 22bcd9a

Browse files
committed
Merge branch 'hotfix/2.0.4'
2 parents 47c52a8 + fa73abf commit 22bcd9a

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55
And as you can see, we [keep a CHANGELOG](http://keepachangelog.com/).
66

7+
## [2.0.4] - 2015-06-06
8+
## Added
9+
- `customUnslashingSanitizingFunctions` property configuration for the
10+
`WordPress.VIP.ValidatedSanitizedInput` sniff. #71
11+
12+
### Changed
13+
- WPCS version to latest commit on `develop`. #72
14+
- Enabled the `WordPress.VIP.DirectDatabaseQuery` sniff. #72
15+
716
## [2.0.3] - 2015-05-23
817
### Added
918
- `WordPress-Extra` and `WordPress-Docs` to the PHPCS ruleset. #69

bin/env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export PHPCS_GIT_TREE=master
1818
# WPCS
1919
export WPCS_DIR=/tmp/wpcs
2020
export WPCS_GITHUB_SRC=WordPress-Coding-Standards/WordPress-Coding-Standards
21-
export WPCS_GIT_TREE=ec5ea0f31fdb1b354a427d31d53676227f1afdc3
21+
export WPCS_GIT_TREE=20fed0bcf6f72f6740a0ad3be6bcb3d99b69ca52
2222
export WPCS_STANDARD=$(if [ -e phpcs.ruleset.xml ]; then echo phpcs.ruleset.xml; else echo WordPress; fi)
2323

2424
# WP L10n Validator

phpcs/WordPoints/ruleset.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
<rule ref="WordPress-VIP">
3232
<exclude name="WordPress.VIP.RestrictedFunctions.switch_to_blog" />
3333
<exclude name="WordPress.VIP.SuperGlobalInputUsage" />
34-
<exclude name="WordPress.VIP.DirectDatabaseQuery" /><!-- WordPoints/wordpoints#75 -->
34+
<exclude name="WordPress.VIP.DirectDatabaseQuery.SchemaChange" />
35+
<exclude name="WordPress.VIP.DirectDatabaseQuery.DirectQuery" />
3536
<!--
3637
These rules are excluded because they produce error-level false
3738
positives. They will be added back in when the changes are committed to
@@ -48,11 +49,15 @@
4849
<exclude-pattern>/tests/*</exclude-pattern>
4950
</rule>
5051
<rule ref="WordPress.VIP.DirectDatabaseQuery">
52+
<properties>
53+
<property name="customCacheDeleteFunctions" value="wordpoints_flush_points_logs_caches" type="array" />
54+
</properties>
5155
<exclude-pattern>/tests/*</exclude-pattern>
5256
</rule>
5357
<rule ref="WordPress.VIP.ValidatedSanitizedInput">
5458
<properties>
5559
<property name="customSanitizingFunctions" value="wordpoints_int,wordpoints_posint,wordpoints_negint,wordpoints_verify_nonce" type="array" />
60+
<property name="customUnslashingSanitizingFunctions" value="wordpoints_int,wordpoints_posint,wordpoints_negint" type="array" />
5661
</properties>
5762
<exclude-pattern>/tests/*</exclude-pattern>
5863
</rule>

0 commit comments

Comments
 (0)