Skip to content

Commit 663d71e

Browse files
committed
2.1.1 release prep
1 parent 86a94e2 commit 663d71e

File tree

5 files changed

+22
-21
lines changed

5 files changed

+22
-21
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ Because we don't like "admins" monkeying around and disabling (or touching) thin
2828
### PHP 5.3 and Higher
2929

3030
```
31-
define( 'CFL_MIN_VERSION', '2.1.0' );
31+
define( 'CFL_MIN_VERSION', '2.1.1' );
3232
```
3333

34-
Sets the minimum supported loaded version of Carbon Fields to >=2.1.0.
34+
Sets the minimum supported loaded version of Carbon Fields to >=2.1.1.
3535

3636
```
3737
define( 'CFL_DISABLE_UPDATE_NOTIFICATION', true );
@@ -88,25 +88,25 @@ define( 'CFL_OPTIONS', array( ... ) );
8888
#### Examples
8989

9090
```
91-
define( 'CFL_OPTIONS' , ['min_version' => '2.1.0', 'hide_plugins' => true ] );
91+
define( 'CFL_OPTIONS' , ['min_version' => '2.1.1', 'hide_plugins' => true ] );
9292
```
9393

94-
* Carbon Fields 2.1.0 or higher must be loaded, else notice is displayed.
94+
* Carbon Fields 2.1.1 or higher must be loaded, else notice is displayed.
9595
* This plugin *and* [GitHub Updater](https://github.com/afragen/github-updater) will be hidden from Plugins > Installed Plugins.
9696

9797
```
98-
define( 'CFL_OPTIONS' , ['deps' => [ 'carbon_fields' => '2.1.0', 'php' => '5.3.29' ], 'hide_plugins' => ['carbon-fields-loader', 'github-updater'], 'disable_updates' => true ] );
98+
define( 'CFL_OPTIONS' , ['deps' => [ 'carbon_fields' => '2.1.1', 'php' => '5.3.29' ], 'hide_plugins' => ['carbon-fields-loader', 'github-updater'], 'disable_updates' => true ] );
9999
````
100100
101-
* Carbon Fields >=2.1.0 and >=PHP 5.3.29 must be loaded, else notice is displayed.
101+
* Carbon Fields >=2.1.1 and >=PHP 5.3.29 must be loaded, else notice is displayed.
102102
* This plugin and GitHub Updater are hidden from Plugins > Installed Plugins.
103103
* Update notifications are disabled for this plugin. (If [GitHub Updater](https://github.com/afragen/github-updater) is installed.)
104104
105105
```
106-
define( 'CFL_OPTIONS' , ['min_version' => '2.1.0', 'hide_plugins' => 'carbon-fields-loader', 'remove_actions' => ['deactivate', 'edit'], 'disable_updates' => true ] );
106+
define( 'CFL_OPTIONS' , ['min_version' => '2.1.1', 'hide_plugins' => 'carbon-fields-loader', 'remove_actions' => ['deactivate', 'edit'], 'disable_updates' => true ] );
107107
```
108108
109-
* Carbon Fields 2.1.0 or higher must be loaded, else notice is displayed.
109+
* Carbon Fields 2.1.1 or higher must be loaded, else notice is displayed.
110110
* This plugin (but not GitHub Updater) is hidden from Plugins > Installed Plugins.
111111
* Removes "Deactivate" and "Edit" action links from this plugin.
112112
* Update notifications are disabled for this plugin.
@@ -123,7 +123,7 @@ Please see the wiki for [usage examples](https://github.com/dmhendricks/carbon-f
123123
124124
**_Q: How do I update this plugin to use a newer version or a different branch of the Carbon Fields Framework?_**
125125
126-
A: If you just want to pull the latest release version of Carbon Fields from the repo, run `composer update`. If you want to pull a different branch, open *composer.json* and edit the line: `"htmlburger/carbon-fields": "^2.1.0"`. Set the version to `"dev-branch"` (for example, if you want the *development* branch, set it to `"dev-development"`), then run `composer update`.
126+
A: If you just want to pull the latest release version of Carbon Fields from the repo, run `composer update`. If you want to pull a different branch, open *composer.json* and edit the line: `"htmlburger/carbon-fields": "^2.1.1"`. Set the version to `"dev-branch"` (for example, if you want the *development* branch, set it to `"dev-development"`), then run `composer update`.
127127
128128
**_Q: How can I get auto-updates?_**
129129

app/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function init() {
4343
add_action( 'after_setup_theme', array( 'Carbon_Fields\\Carbon_Fields', 'boot' ) );
4444

4545
if( $this->verify_dependencies( 'carbon_fields' ) === true ) {
46-
add_action( 'carbon_fields_loaded', array( $this, 'load_plugin' ));
46+
add_action( 'carbon_fields_fields_registered', array( $this, 'load_plugin' ));
4747
}
4848

4949
}

carbon-fields-loader.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: Carbon Fields Loader
55
* Plugin URI: https://github.com/dmhendricks/carbon-fields-loader/
66
* Description: A loader plugin for the Carbon Fields framework.
7-
* Version: 2.1.0
7+
* Version: 2.1.1
88
* Author: Daniel M. Hendricks
99
* Author URI: https://www.danhendricks.com
1010
* Text Domain: cfloader
@@ -16,7 +16,7 @@
1616
* GitHub Plugin URI: dmhendricks/carbon-fields-loader
1717
*/
1818

19-
/* Copyright 2017 Daniel M. Hendricks (https://www.danhendricks.com/)
19+
/* Copyright 2018 Daniel M. Hendricks (https://www.danhendricks.com/)
2020
2121
This program is free software; you can redistribute it and/or
2222
modify it under the terms of the GNU General Public License
@@ -33,17 +33,17 @@
3333
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3434
*/
3535

36-
if(!defined('WPINC')) die();
36+
if( !defined( 'WPINC' ) ) die();
3737

3838
require( __DIR__ . '/vendor/autoload.php' );
3939
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
4040

4141
// Initialize plugin - Change to use your own namespace
4242
new \TwoLabNet\CarbonFieldsLoader\Plugin(array(
43-
'data' => get_plugin_data(__FILE__),
44-
'path' => realpath(plugin_dir_path(__FILE__)).DIRECTORY_SEPARATOR,
45-
'url' => plugin_dir_url(__FILE__),
46-
'deps' => array( 'php' => '5.3', 'carbon_fields' => '2.1.0' ),
47-
'plugin_file' => plugin_basename(__FILE__)
43+
'data' => get_plugin_data( __FILE__ ),
44+
'path' => realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR,
45+
'url' => plugin_dir_url( __FILE__ ),
46+
'deps' => array( 'php' => '5.3', 'carbon_fields' => '2.1.1' ),
47+
'plugin_file' => plugin_basename( __FILE__ )
4848
));
4949
?>

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "dmhendricks/carbon-fields-loader",
33
"type": "wordpress-plugin",
44
"description": "A plugin for WordPress that loads the latest Carbon Fields framework.",
5+
"version": "2.1.1",
56
"keywords": ["wordpress", "plugin", "carbon fields", "custom", "fields", "loader"],
67
"homepage": "https://github.com/dmhendricks/carbon-fields-loader/",
78
"license": "GPL-2.0",
@@ -18,7 +19,7 @@
1819
},
1920
"require": {
2021
"php": ">=5.3.29",
21-
"htmlburger/carbon-fields": "^2.1.0",
22+
"htmlburger/carbon-fields": "2.1.1",
2223
"composer/installers": "^1.3.0"
2324
},
2425
"minimum-stability": "dev",

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Plugin URI: https://github.com/dmhendricks/carbon-fields-loader/
55
Donate link: https://paypal.me/danielhendricks
66
Requires at least: 4.0
77
Tested up to: 4.8.2
8-
Stable tag: 2.1.0
8+
Stable tag: 2.1.1
99
License: GPL-2.0
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -47,4 +47,4 @@ A. This may occur when you are running an outdated version of the Carbon Fields
4747
A: Install [GitHub Updater](https://github.com/afragen/github-updater).
4848

4949
#### Q. How do I update this thing to use a newer version or a different branch?
50-
If you just want to pull the latest release version of Carbon Fields from the repo, run `composer update`. If you want to pull a different branch, open *composer.json* and edit the line: `"htmlburger/carbon-fields": "^2.1.0"`. Set the version to `"dev-branch"` (for example, if you want the *development* branch, set it to `"dev-development"`), then run `composer update`.
50+
If you just want to pull the latest release version of Carbon Fields from the repo, run `composer update`. If you want to pull a different branch, open *composer.json* and edit the line: `"htmlburger/carbon-fields": "2.1.1"`. Set the version to `"dev-branch"` (for example, if you want the *development* branch, set it to `"dev-development"`), then run `composer update`.

0 commit comments

Comments
 (0)