Skip to content

Commit 8d573ae

Browse files
Merge pull request #107 from tomjn/patch-1
Swapped out the .dev Google TLD for the .test RFC protected domain in doc examples
2 parents 3e5b969 + bdbdc40 commit 8d573ae

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ change primary key values.
122122
**EXAMPLES**
123123

124124
# Search and replace but skip one column
125-
$ wp search-replace 'http://example.dev' 'http://example.com' --skip-columns=guid
125+
$ wp search-replace 'http://example.test' 'http://example.com' --skip-columns=guid
126126

127127
# Run search/replace operation but dont save in database
128128
$ wp search-replace 'foo' 'bar' wp_posts wp_postmeta wp_terms --dry-run
@@ -131,17 +131,17 @@ change primary key values.
131131
$ wp search-replace '\[foo id="([0-9]+)"' '[bar id="\1"' --regex --regex-flags='i'
132132

133133
# Turn your production multisite database into a local dev database
134-
$ wp search-replace --url=example.com example.com example.dev 'wp_*options' wp_blogs
134+
$ wp search-replace --url=example.com example.com example.test 'wp_*options' wp_blogs
135135

136136
# Search/replace to a SQL file without transforming the database
137137
$ wp search-replace foo bar --export=database.sql
138138

139139
# Bash script: Search/replace production to development url (multisite compatible)
140140
#!/bin/bash
141141
if $(wp --url=http://example.com core is-installed --network); then
142-
wp search-replace --url=http://example.com 'http://example.com' 'http://example.dev' --recurse-objects --network --skip-columns=guid --skip-tables=wp_users
142+
wp search-replace --url=http://example.com 'http://example.com' 'http://example.test' --recurse-objects --network --skip-columns=guid --skip-tables=wp_users
143143
else
144-
wp search-replace 'http://example.com' 'http://example.dev' --recurse-objects --skip-columns=guid --skip-tables=wp_users
144+
wp search-replace 'http://example.com' 'http://example.test' --recurse-objects --skip-columns=guid --skip-tables=wp_users
145145
fi
146146

147147
## Installing

src/Search_Replace_Command.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class Search_Replace_Command extends WP_CLI_Command {
139139
* ## EXAMPLES
140140
*
141141
* # Search and replace but skip one column
142-
* $ wp search-replace 'http://example.dev' 'http://example.com' --skip-columns=guid
142+
* $ wp search-replace 'http://example.test' 'http://example.com' --skip-columns=guid
143143
*
144144
* # Run search/replace operation but dont save in database
145145
* $ wp search-replace 'foo' 'bar' wp_posts wp_postmeta wp_terms --dry-run
@@ -148,17 +148,17 @@ class Search_Replace_Command extends WP_CLI_Command {
148148
* $ wp search-replace '\[foo id="([0-9]+)"' '[bar id="\1"' --regex --regex-flags='i'
149149
*
150150
* # Turn your production multisite database into a local dev database
151-
* $ wp search-replace --url=example.com example.com example.dev 'wp_*options' wp_blogs
151+
* $ wp search-replace --url=example.com example.com example.test 'wp_*options' wp_blogs
152152
*
153153
* # Search/replace to a SQL file without transforming the database
154154
* $ wp search-replace foo bar --export=database.sql
155155
*
156156
* # Bash script: Search/replace production to development url (multisite compatible)
157157
* #!/bin/bash
158158
* if $(wp --url=http://example.com core is-installed --network); then
159-
* wp search-replace --url=http://example.com 'http://example.com' 'http://example.dev' --recurse-objects --network --skip-columns=guid --skip-tables=wp_users
159+
* wp search-replace --url=http://example.com 'http://example.com' 'http://example.test' --recurse-objects --network --skip-columns=guid --skip-tables=wp_users
160160
* else
161-
* wp search-replace 'http://example.com' 'http://example.dev' --recurse-objects --skip-columns=guid --skip-tables=wp_users
161+
* wp search-replace 'http://example.com' 'http://example.test' --recurse-objects --skip-columns=guid --skip-tables=wp_users
162162
* fi
163163
*/
164164
public function __invoke( $args, $assoc_args ) {

0 commit comments

Comments
 (0)