Skip to content

Commit b1d0334

Browse files
committed
Merge pull request #7 from kalenjohnson/v2
V2
2 parents 43779e5 + a7f3dd0 commit b1d0334

File tree

6 files changed

+294
-61
lines changed

6 files changed

+294
-61
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 2.0.0: February 10th, 2016
2+
* Rewrite plugin, require Composer
3+
14
### 1.0.3: August 19th, 2014
25
* Only show menu item for administrators, add filter for visibility control
36

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ You'll need to have `ENVIRONMENTS` and `WP_ENV` defined in your WordPress config
1111
The `ENVIRONMENTS` constant must be a serialized array of `'environment' => 'url'` elements:
1212

1313
```php
14-
$envs = array(
14+
$envs = [
1515
'development' => 'http://example.dev',
1616
'staging' => 'http://staging.example.com',
1717
'production' => 'http://example.com'
18-
);
18+
];
1919
define('ENVIRONMENTS', serialize($envs));
2020
```
2121

@@ -29,19 +29,19 @@ If you use [Bedrock](https://github.com/roots/bedrock), `WP_ENV` is already defi
2929

3030
## Installation
3131

32-
If you're using Composer to manage WordPress, add wp-stage-switcher to your project's dependencies. Run:
32+
This plugin must be installed via Composer. Add wp-stage-switcher to your project's dependencies:
3333

3434
```sh
35-
composer require roots/wp-stage-switcher 1.0.3
35+
composer require roots/wp-stage-switcher 2.0.0
3636
```
3737

3838
Or manually add it to your `composer.json`:
3939

4040
```json
4141
"require": {
42-
"php": ">=5.3.0",
43-
"wordpress": "3.9.2",
44-
"roots/wp-stage-switcher": "1.0.3"
42+
"php": ">=5.4.0",
43+
"wordpress": "4.4.2",
44+
"roots/wp-stage-switcher": "2.0.0"
4545
}
4646
```
4747

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"forum": "http://discourse.roots.io/"
2525
},
2626
"require": {
27-
"php": ">=5.3.0",
28-
"composer/installers": "~1.0"
27+
"php": ">=5.4.0",
28+
"composer/installers": "~1.0",
29+
"jwage/purl": "^0.0.6"
2930
}
3031
}

composer.lock

Lines changed: 212 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)