mirror of
https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2026-07-29 10:56:57 +08:00
|
Some checks failed
Basic QA checks / Run code sniffs (push) Failing after 0s
Basic QA checks / XML Code style (push) Failing after 0s
Basic QA checks / Ruleset test: PHP latest on PHPCS lowest (push) Failing after 0s
Basic QA checks / Ruleset test: PHP latest on PHPCS stable (push) Failing after 0s
Basic QA checks / PHPStan (push) Failing after 0s
Basic QA checks / Find typos (push) Failing after 0s
Basic QA checks / Ruleset test: PHP latest on PHPCS dev (push) Failing after 4s
Quick Tests / QTest - PHP 7.2 on PHPCS stable (push) Failing after 0s
Quick Tests / QTest - PHP latest on PHPCS lowest (push) Failing after 0s
Quick Tests / QTest - PHP 7.2 on PHPCS lowest (push) Failing after 2s
Quick Tests / QTest - PHP latest on PHPCS stable (push) Failing after 2s
* Add documentation for WordPress.PHP.RestrictedPHPFunctions * Rework XML documentation for WordPress.PHP.RestrictedPHPFunctions Some of these changes were suggested during the review of PR 2491, and others were decided while working on the new PR: - Make the standard description generic instead of mentioning create_function() specifically, following the pattern used by other docs like DeprecatedFunctionsStandard.xml. - Use "must not" instead of "should not" since the sniff produces an error. - Simplify the code examples by removing the add_action() wrapper. - Add <em> tags to the valid code example. * Explain why in the standard description Following the suggestion in PR 2687, this commit improves the standard description to explain why these functions must not be used. The phrasing is kept generic instead of mentioning create_function() specifically, since the sniff name suggests it could be extended with more functions in the future. Co-authored-by: gogdzl <diego.rodrigues@automattic.com> |
||
|---|---|---|
| .. | ||
| DevelopmentFunctionsStandard.xml | ||
| DontExtractStandard.xml | ||
| IniSetStandard.xml | ||
| NoSilencedErrorsStandard.xml | ||
| PregQuoteDelimiterStandard.xml | ||
| RestrictedPHPFunctionsStandard.xml | ||
| StrictInArrayStandard.xml | ||
| YodaConditionsStandard.xml | ||