Skip to content

Commit

Permalink
Rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Nov 6, 2023
1 parent 52878ff commit c301464
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion includes/Checker/AJAX_Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions includes/Checker/Abstract_Check_Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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' )
);
}
}
Expand Down

0 comments on commit c301464

Please sign in to comment.