Skip to content

Commit f731434

Browse files
authored
Merge pull request #43 from grantpalin/install-installation
Replace "install" with "installation" where appropriate
2 parents 33aedec + 7820c56 commit f731434

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
wp-cli/find-command
22
===================
33

4-
Find WordPress installs on the filesystem.
4+
Find WordPress installations on the filesystem.
55

66
[![Build Status](https://travis-ci.org/wp-cli/find-command.svg?branch=master)](https://travis-ci.org/wp-cli/find-command)
77

@@ -14,14 +14,14 @@ wp find <path> [--skip-ignored-paths] [--include_ignored_paths=<paths>] [--max_d
1414
~~~
1515

1616
Recursively iterates subdirectories of provided `<path>` to find and
17-
report WordPress installs. A WordPress install is a wp-includes directory
18-
with a version.php file.
17+
report WordPress installations. A WordPress installation is a wp-includes
18+
directory with a version.php file.
1919

2020
Avoids recursing some known paths (e.g. /node_modules/, hidden sys dirs)
2121
to significantly improve performance.
2222

23-
Indicates depth at which the WordPress install was found, and its alias,
24-
if it has one.
23+
Indicates depth at which the WordPress installations was found, and its
24+
alias, if it has one.
2525

2626
```
2727
$ wp find ./
@@ -99,7 +99,7 @@ Once you've decided to commit the time to seeing your pull request through, [ple
9999

100100
## Support
101101

102-
Github issues aren't for general support questions, but there are other venues you can try: http://wp-cli.org/#support
102+
Github issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support
103103

104104

105105
*This README.md is generated dynamically from the project's codebase using `wp scaffold package-readme` ([doc](https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-readme)). To suggest changes, please submit a pull request against the corresponding part of the codebase.*

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wp-cli/find-command",
3-
"description": "Find WordPress installs on the filesystem.",
3+
"description": "Find WordPress installations on the filesystem.",
44
"type": "wp-cli-package",
55
"homepage": "https://github.com/wp-cli/finder-command",
66
"license": "MIT",

features/find.feature

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ Feature: Find WordPress installs on the filesystem
1717
When I run `wp find {TEST_DIR} --field=version_path --verbose`
1818
Then STDOUT should contain:
1919
"""
20-
Found WordPress install at '{TEST_DIR}/subdir1/wp-includes/version.php'
20+
Found WordPress installation at '{TEST_DIR}/subdir1/wp-includes/version.php'
2121
"""
2222
And STDOUT should contain:
2323
"""
24-
Found WordPress install at '{TEST_DIR}/subdir2/wp-includes/version.php'
24+
Found WordPress installation at '{TEST_DIR}/subdir2/wp-includes/version.php'
2525
"""
2626

2727
When I run `wp find {TEST_DIR} --format=count`
@@ -41,11 +41,11 @@ Feature: Find WordPress installs on the filesystem
4141
When I run `wp find {TEST_DIR} --field=version_path --verbose`
4242
Then STDOUT should contain:
4343
"""
44-
Found WordPress install at '{TEST_DIR}/subdir1/wp-includes/version.php'
44+
Found WordPress installation at '{TEST_DIR}/subdir1/wp-includes/version.php'
4545
"""
4646
And STDOUT should not contain:
4747
"""
48-
Found WordPress install at '{TEST_DIR}/subdir2/wp-includes/version.php'
48+
Found WordPress installation at '{TEST_DIR}/subdir2/wp-includes/version.php'
4949
"""
5050
And STDOUT should contain:
5151
"""
@@ -80,15 +80,15 @@ Feature: Find WordPress installs on the filesystem
8080
When I run `wp find {TEST_DIR} --verbose`
8181
Then STDOUT should contain:
8282
"""
83-
Found WordPress install at '{TEST_DIR}/subdir1/wp-includes/version.php'
83+
Found WordPress installation at '{TEST_DIR}/subdir1/wp-includes/version.php'
8484
"""
8585
And STDOUT should contain:
8686
"""
87-
Found WordPress install at '{TEST_DIR}/sub/subdir2/wp-includes/version.php'
87+
Found WordPress installation at '{TEST_DIR}/sub/subdir2/wp-includes/version.php'
8888
"""
8989
And STDOUT should contain:
9090
"""
91-
Found WordPress install at '{TEST_DIR}/sub/sub/subdir3/wp-includes/version.php'
91+
Found WordPress installation at '{TEST_DIR}/sub/sub/subdir3/wp-includes/version.php'
9292
"""
9393

9494
When I run `wp find {TEST_DIR} --format=count`
@@ -100,11 +100,11 @@ Feature: Find WordPress installs on the filesystem
100100
When I run `wp find {TEST_DIR} --verbose --max_depth=2`
101101
Then STDOUT should contain:
102102
"""
103-
Found WordPress install at '{TEST_DIR}/subdir1/wp-includes/version.php'
103+
Found WordPress installation at '{TEST_DIR}/subdir1/wp-includes/version.php'
104104
"""
105105
And STDOUT should contain:
106106
"""
107-
Found WordPress install at '{TEST_DIR}/sub/subdir2/wp-includes/version.php'
107+
Found WordPress installation at '{TEST_DIR}/sub/subdir2/wp-includes/version.php'
108108
"""
109109
And STDOUT should contain:
110110
"""
@@ -120,7 +120,7 @@ Feature: Find WordPress installs on the filesystem
120120
When I run `wp find {TEST_DIR} --verbose --max_depth=1`
121121
Then STDOUT should contain:
122122
"""
123-
Found WordPress install at '{TEST_DIR}/subdir1/wp-includes/version.php'
123+
Found WordPress installation at '{TEST_DIR}/subdir1/wp-includes/version.php'
124124
"""
125125
And STDOUT should contain:
126126
"""

src/Find_Command.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,24 +105,24 @@ class Find_Command {
105105
private $resolved_aliases = array();
106106

107107
/**
108-
* Found WordPress installs.
108+
* Found WordPress installations.
109109
*
110110
* @var array
111111
*/
112112
private $found_wp = array();
113113

114114
/**
115-
* Find WordPress installs on the filesystem.
115+
* Find WordPress installations on the filesystem.
116116
*
117117
* Recursively iterates subdirectories of provided `<path>` to find and
118-
* report WordPress installs. A WordPress install is a wp-includes directory
119-
* with a version.php file.
118+
* report WordPress installations. A WordPress installation is a wp-includes
119+
* directory with a version.php file.
120120
*
121121
* Avoids recursing some known paths (e.g. /node_modules/, hidden sys dirs)
122122
* to significantly improve performance.
123123
*
124-
* Indicates depth at which the WordPress install was found, and its alias,
125-
* if it has one.
124+
* Indicates depth at which the WordPress installations was found, and its
125+
* alias, if it has one.
126126
*
127127
* ```
128128
* $ wp find ./
@@ -192,9 +192,9 @@ public function __invoke( $args, $assoc_args ) {
192192
}
193193

194194
$this->start_time = microtime( true );
195-
$this->log( "Searching for WordPress installs in '{$path}'" );
195+
$this->log( "Searching for WordPress installations in '{$path}'" );
196196
$this->recurse_directory( $this->base_path );
197-
$this->log( "Finished search for WordPress installs in '{$path}'" );
197+
$this->log( "Finished search for WordPress installations in '{$path}'" );
198198
$formatter = new \WP_CLI\Formatter( $assoc_args, array( 'version_path', 'version', 'depth', 'alias' ) );
199199
$formatter->display_items( $this->found_wp );
200200
}
@@ -209,7 +209,7 @@ private function recurse_directory( $path ) {
209209
// Provide consistent trailing slashes to all paths
210210
$path = rtrim( $path, '/' ) . '/';
211211

212-
// Don't recurse directories that probably don't have a WordPress install.
212+
// Don't recurse directories that probably don't have a WordPress installation.
213213
if ( ! $this->skip_ignored_paths ) {
214214
// Assume base path doesn't need comparison
215215
$compared_path = preg_replace( '#^' . preg_quote( $this->base_path ) . '#', '', $path );
@@ -242,7 +242,7 @@ private function recurse_directory( $path ) {
242242
'depth' => $this->current_depth - 1,
243243
'alias' => $alias,
244244
);
245-
$this->log( "Found WordPress install at '{$version_path}'" );
245+
$this->log( "Found WordPress installation at '{$version_path}'" );
246246
return;
247247
}
248248

@@ -271,7 +271,7 @@ private function recurse_directory( $path ) {
271271
}
272272

273273
/**
274-
* Get the WordPress version for the install, without executing the file.
274+
* Get the WordPress version for the installation, without executing the file.
275275
*/
276276
private static function get_wp_version( $path ) {
277277
$contents = file_get_contents( $path );

0 commit comments

Comments
 (0)