Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 #7

Merged
merged 2 commits into from
Feb 10, 2016
Merged

V2 #7

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 2.0.0: February 10th, 2016
* Rewrite plugin, require Composer

### 1.0.3: August 19th, 2014
* Only show menu item for administrators, add filter for visibility control

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ You'll need to have `ENVIRONMENTS` and `WP_ENV` defined in your WordPress config
The `ENVIRONMENTS` constant must be a serialized array of `'environment' => 'url'` elements:

```php
$envs = array(
$envs = [
'development' => 'http://example.dev',
'staging' => 'http://staging.example.com',
'production' => 'http://example.com'
);
];
define('ENVIRONMENTS', serialize($envs));
```

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

## Installation

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

```sh
composer require roots/wp-stage-switcher 1.0.3
composer require roots/wp-stage-switcher 2.0.0
```

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

```json
"require": {
"php": ">=5.3.0",
"wordpress": "3.9.2",
"roots/wp-stage-switcher": "1.0.3"
"php": ">=5.4.0",
"wordpress": "4.4.2",
"roots/wp-stage-switcher": "2.0.0"
}
```

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"forum": "http://discourse.roots.io/"
},
"require": {
"php": ">=5.3.0",
"composer/installers": "~1.0"
"php": ">=5.4.0",
"composer/installers": "~1.0",
"jwage/purl": "^0.0.6"
}
}
212 changes: 212 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading