diff --git a/includes/Checker/Checks/Security/Direct_DB_Queries_Check.php b/includes/Checker/Checks/Security/Direct_DB_Queries_Check.php index 5e86e54bf..572a9e718 100644 --- a/includes/Checker/Checks/Security/Direct_DB_Queries_Check.php +++ b/includes/Checker/Checks/Security/Direct_DB_Queries_Check.php @@ -31,7 +31,10 @@ class Direct_DB_Queries_Check extends Abstract_PHP_CodeSniffer_Check { * @return array The categories for the check. */ public function get_categories() { - return array( Check_Categories::CATEGORY_SECURITY ); + return array( + Check_Categories::CATEGORY_SECURITY, + Check_Categories::CATEGORY_PLUGIN_REPO, + ); } /** diff --git a/includes/Checker/Checks/Security/Late_Escaping_Check.php b/includes/Checker/Checks/Security/Late_Escaping_Check.php index aec26479a..c7a7df995 100644 --- a/includes/Checker/Checks/Security/Late_Escaping_Check.php +++ b/includes/Checker/Checks/Security/Late_Escaping_Check.php @@ -31,7 +31,10 @@ class Late_Escaping_Check extends Abstract_PHP_CodeSniffer_Check { * @return array The categories for the check. */ public function get_categories() { - return array( Check_Categories::CATEGORY_SECURITY ); + return array( + Check_Categories::CATEGORY_SECURITY, + Check_Categories::CATEGORY_PLUGIN_REPO, + ); } /** diff --git a/tests/behat/features/plugin-list-checks.feature b/tests/behat/features/plugin-list-checks.feature index e9eba3d68..042807df8 100644 --- a/tests/behat/features/plugin-list-checks.feature +++ b/tests/behat/features/plugin-list-checks.feature @@ -35,5 +35,5 @@ Feature: Test that the WP-CLI plugin list checks command works. """ And STDOUT should contain: """ - late_escaping,security,stable + late_escaping,"security, plugin_repo",stable """