From c301464a92ad188e0576fb988d6d8f2ffb849691 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 6 Nov 2023 18:28:35 +0100 Subject: [PATCH] Rename var --- includes/Checker/AJAX_Runner.php | 2 +- includes/Checker/Abstract_Check_Runner.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Checker/AJAX_Runner.php b/includes/Checker/AJAX_Runner.php index 414f24bed..467f2dc29 100644 --- a/includes/Checker/AJAX_Runner.php +++ b/includes/Checker/AJAX_Runner.php @@ -90,7 +90,7 @@ protected function get_check_slugs_param() { * @return array An array of Check slugs to exclude. */ protected function get_check_exclude_slugs_param() { - $checks = filter_input( INPUT_POST, 'ignore-checks', FILTER_DEFAULT, FILTER_FORCE_ARRAY ); + $checks = filter_input( INPUT_POST, 'exclude-checks', FILTER_DEFAULT, FILTER_FORCE_ARRAY ); $checks = is_null( $checks ) ? array() : $checks; return $checks; diff --git a/includes/Checker/Abstract_Check_Runner.php b/includes/Checker/Abstract_Check_Runner.php index c43262f88..7aa5df10e 100644 --- a/includes/Checker/Abstract_Check_Runner.php +++ b/includes/Checker/Abstract_Check_Runner.php @@ -179,11 +179,11 @@ final public function set_check_slugs( array $check_slugs ) { } /** - * Sets the check slugs to be ignored. + * Sets the check slugs to be excluded. * * @since n.e.x.t * - * @param array $check_slugs An array of check slugs to be ignored. + * @param array $check_slugs An array of check slugs to be excluded. * * @throws Exception Thrown if the checks do not match those in the original request. */ @@ -192,7 +192,7 @@ final public function set_check_exclude_slugs( array $check_slugs ) { // Compare the check slugs to see if there was an error. if ( $check_slugs !== $this->get_check_exclude_slugs_param() ) { throw new Exception( - __( 'Invalid checks: The checks to ignore do not match the original request.', 'plugin-check' ) + __( 'Invalid checks: The checks to exclude do not match the original request.', 'plugin-check' ) ); } }