0.4.0
This release contains breaking changes.
Added
WordPressVIPMinimum.Cache.LowExpiryCacheTimesniff.WordPressVIPMinimum.Classes.RestrictedExtendedClassessniff, forWP_CLI_Command.WordPressVIPMinimum.Filters.RestrictedHookssniff, forupload_mimes, as well ashttp_request_timeoutandhttp_request_argsfilters which change timeouts, as we typically don't recommend anything above 3s.WordPressVIPMinimum.Functions.StripTagssniff.WordPressVIPMinimum.JS.DangerouslySetInnerHTMLsniff.WordPressVIPMinimum.JS.Windowsniff.WordPressVIPMinimum.VIP.PHPFilterFunctionssniff.- GitHub issue templates.
opcache_*()functions to list of restricted functions.- ACF templating function to list of restricted functions.
.editorconfigto repo.Generic.PHP.SyntaxtoWordPressVIPMinimumruleset.
Changed
- Allow unused
$ewhen catching exceptions. - Improved accuracy of
WordPressVIPMinimum.Files.IncludingFile - Refactor
WordPressVIPMinimum.VIP.RestrictedFunctionssniff. - Include documentation links directly in error message for
WordPressVIPMinimum.VIP.WPQueryParams.post__not_in. - Composer: Normalized
composer.json. - Composer: Bump to PHPCompatibility ^9.
- Change severity of
WordPress.CodeAnalysis.AssignmentInCondition.Foundto 1 instead of removing it. - Increases the PHPCS (3.2.3) and PHP (5.6+) minimum versions to supported and known good values.
- Travis: Remove PHPUnit 6 workaround.
- Travis: updates the PHPCS referenced in the Travis file, and remove the PHP 5.5 and 5.4 checks.
- Travis: Switch to using build stages.
- Travis: Extract shell scripts out of Travis config file.
- Silence
WordPressVIPMinimum.Cache.BatcacheWhitelistedParamsfor VIP Go ruleset. - Silence variable assignment condition rule.
- Docs: Updated Readme for more accuracy.
- Docs: Updated VIP link references.
- Removed string concatenation for messages for better readability.
Fixed
- Unreplaced placeholders for violation messages in
WordPressVIPMinimum.VIP.FetchingRemoteDataSniff. WordPressVIPMinimum.Filters.AlwaysReturnSniffnot reporting filter callbacks that don'treturnanywhere inside the function body.- Incorrect severity level parameters in
WordPressVIPMinimum.Variables.VariableAnalysissniff since they are passed in as a string. - Detection of double quotes in
WordPressVIPMinimum.Variables.ServerVariables, add additional server variables and update unit tests. - Typo:
WordPressVIPMinimum.Files.IncludingNonPHPFilemessages, switchingget_file_contentstofile_get_contents. - Typo: "returning" in
WordPressVIPMinimum.Filters.AlwaysReturn.voidReturnmessage. - Typo:
WordPressVIPMinimum.VIP.WPQueryParameters.suppressFiltersTrue, switchingprobihtedtoprohibited. - Integration tests not running in Travis.
Removed
- BREAKING:
WordPressVIPMinimum.SVG.HTMLCodeSniff(SVG support), since it was not working well. You should remove any reference to this in your custom ruleset. var_dumpfromWordPressVIPMinimumruleset since it should be the same type asvar_exportwpcom_vip_get_page_by_pathfromWordPressVIPMinimum.VIP.RestrictedFunctions- Version check for PHP 7 or less in
WordPressVIPMinimum.Variables.VariableAnalysisunit test since tests are not failing anymore.