Skip to content

Commit

Permalink
Merge pull request #246 from 10up/fix/245-typos
Browse files Browse the repository at this point in the history
Fix typos in the plugin
  • Loading branch information
felixarntz authored Aug 29, 2023
2 parents 389934b + d51f8b0 commit c0d5a0c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/creating-a-static-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function run( Check_Result $result ) {
'Warning message content.',
array(
'code' => 'warning_code',
'file' => $pluging_file,
'file' => $plugin_file,
'line' => 1,
'column' => 10,
)
Expand Down
2 changes: 1 addition & 1 deletion includes/Checker/AJAX_Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function get_check_slugs_param() {
}

/**
* Returns the include experimental paramater based on the request.
* Returns the include experimental parameter based on the request.
*
* @since n.e.x.t
*
Expand Down
4 changes: 2 additions & 2 deletions includes/Checker/Abstract_Check_Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ abstract class Abstract_Check_Runner implements Check_Runner {
*
* @since n.e.x.t
*
* @return string The plugin paramater from the request.
* @return string The plugin parameter from the request.
*/
abstract protected function get_plugin_param();

Expand All @@ -111,7 +111,7 @@ abstract protected function get_plugin_param();
abstract protected function get_check_slugs_param();

/**
* Returns the include experimental paramater based on the request.
* Returns the include experimental parameter based on the request.
*
* @since n.e.x.t
*
Expand Down
2 changes: 1 addition & 1 deletion includes/Checker/CLI_Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected function get_check_slugs_param() {
}

/**
* Returns the include experimental paramater based on the request.
* Returns the include experimental parameter based on the request.
*
* @since n.e.x.t
*
Expand Down
10 changes: 5 additions & 5 deletions tests/phpunit/Admin/Admin_Page_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function test_render_page() {
// Restore the original cache.
$wp_object_cache->set( 'plugins', $original_plugins, 'plugins' );

// Remove the plugin checker from exptected plugins for testing.
// Remove the plugin checker from expected plugins for testing.
unset( $expected_plugins[ $plugin_basename ] );

// Assert the Plugin Checker does not appear in the select dropdown.
Expand Down Expand Up @@ -208,10 +208,10 @@ public function test_filter_plugin_action_links_should_not_add_check( $context,
*/
public function data_status_mustuse_and_dropins() {
return array(
'Must-Use' => array( 'mustuse', false ),
'Must-Use with Admininistrator check' => array( 'mustuse', true ),
'Drop-ins' => array( 'dropins', false ),
'Drop-ins with Admininistrator check' => array( 'dropins', true ),
'Must-Use' => array( 'mustuse', false ),
'Must-Use with Administrator check' => array( 'mustuse', true ),
'Drop-ins' => array( 'dropins', false ),
'Drop-ins with Administrator check' => array( 'dropins', true ),
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function test_prepare_plugin_does_not_exist() {
* @throws Exception Throw exception.
*/
public function test_prepare() {
// Remove the WP tests active plugins filter which interfers with this test.
// Remove the WP tests active plugins filter which interferes with this test.
remove_filter( 'pre_option_active_plugins', 'wp_tests_options' );

$preparation = new Force_Single_Plugin_Preparation( $this->plugin_basename_file );
Expand Down

0 comments on commit c0d5a0c

Please sign in to comment.