Skip to content

Commit

Permalink
Merge branch 'trunk'
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Aug 5, 2015
2 parents dff3d61 + f8ba7de commit 4aeaa0d
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.

## [Unreleased][unreleased]

## 2.1.0 - 2015-00-05

### Bug Fixes

* Fix user fields not saving. Props [achavez](https://github.com/achavez), ([#417](https://github.com/WebDevStudios/CMB2/pull/417)).

## 2.0.9 - 2015-07-28

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion includes/CMB2_Types.php
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ public function file_status_output( $args ) {
esc_html( $this->_text( 'file_text', __( 'File:', 'cmb2' ) ) ),
$this->get_file_name_from_path( $args['value'] ),
$args['value'],
esc_html( $this->_text( 'file-download-text', __( 'Download', 'cmb2' ) ) ),
esc_html( $this->_text( 'file_download_text', __( 'Download', 'cmb2' ) ) ),
isset( $args['cached_id'] ) ? ' rel="' . $args['cached_id'] . '"' : '',
esc_html( $this->_text( 'remove_text', __( 'Remove', 'cmb2' ) ) ),
isset( $args['id_input'] ) ? $args['id_input'] : ''
Expand Down
2 changes: 1 addition & 1 deletion includes/CMB2_hookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public function save_comment( $comment_id ) {
*/
public function save_user( $user_id ) {
// check permissions
if ( $this->can_save() ) {
if ( $this->can_save( 'user' ) ) {
$this->cmb->save_fields( $user_id, 'user', $_POST );
}
}
Expand Down
20 changes: 10 additions & 10 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Bill Erickson (@billerickson / billerickson.net)
* Andrew Norcross (@norcross / andrewnorcross.com)
*
* Version: 2.0.9
* Version: 2.1.0
*
* Text Domain: cmb2
* Domain Path: languages
Expand Down Expand Up @@ -48,7 +48,7 @@
or things might explode!
*************************************************************************/

if ( ! class_exists( 'CMB2_Bootstrap_209', false ) ) {
if ( ! class_exists( 'CMB2_Bootstrap_210', false ) ) {

/**
* Handles checking for and loading the newest version of CMB2
Expand All @@ -61,14 +61,14 @@
* @license GPL-2.0+
* @link http://webdevstudios.com
*/
class CMB2_Bootstrap_209 {
class CMB2_Bootstrap_210 {

/**
* Current version number
* @var string
* @since 1.0.0
*/
const VERSION = '2.0.9';
const VERSION = '2.1.0';

/**
* Current version hook priority.
Expand All @@ -77,20 +77,20 @@ class CMB2_Bootstrap_209 {
* @var int
* @since 2.0.0
*/
const PRIORITY = 9990;
const PRIORITY = 9989;

/**
* Single instance of the CMB2_Bootstrap_209 object
* Single instance of the CMB2_Bootstrap_210 object
*
* @var CMB2_Bootstrap_209
* @var CMB2_Bootstrap_210
*/
public static $single_instance = null;

/**
* Creates/returns the single instance CMB2_Bootstrap_209 object
* Creates/returns the single instance CMB2_Bootstrap_210 object
*
* @since 2.0.0
* @return CMB2_Bootstrap_209 Single instance object
* @return CMB2_Bootstrap_210 Single instance object
*/
public static function initiate() {
if ( null === self::$single_instance ) {
Expand Down Expand Up @@ -177,6 +177,6 @@ public function l10ni18n() {
}

// Make it so...
CMB2_Bootstrap_209::initiate();
CMB2_Bootstrap_210::initiate();

}
9 changes: 8 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
**Tags:** metaboxes, forms, fields, options, settings
**Requires at least:** 3.8.0
**Tested up to:** 4.3
**Stable tag:** 2.0.9
**Stable tag:** 2.1.0
**License:** GPLv2 or later
**License URI:** [http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)

Expand Down Expand Up @@ -63,6 +63,7 @@ You can see a list of available field types [here](https://github.com/WebDevStud
* [CMB Field Type: Slider](https://github.com/qmatt/cmb2-field-slider) from [mattkrupnik](https://github.com/mattkrupnik/): Adds a jQuery UI Slider field.
* [WDS CMB2 Date Range Field](https://github.com/WebDevStudios/CMB2-Date-Range-Field) from [dustyf](https://github.com/dustyf) of [WebDevStudios](https://github.com/WebDevStudios): Adds a date range field.
* [CMB2 Remote Image Select](https://github.com/WebDevStudios/CMB2-Remote-Image-Select-Field) from [JayWood](https://github.com/JayWood) of [WebDevStudios](https://github.com/WebDevStudios): Allows users to enter a URL in a text field and select a single image for use in post meta. Similar to Facebook's featured image selector.
* [CMB Field Type: Sorter](https://wordpress.org/plugins/cmb-field-type-sorter/): This plugin gives you two CMB field types based on the Sorter script.

#### Other Helpful Resources
* [Taxonomy_MetaData](https://github.com/jtsternberg/Taxonomy_MetaData#to-use-taxonomy_metadata-with-custom-metaboxes-and-fields): WordPress Helper Class for saving pseudo-metadata for taxonomy terms. Includes an extended class for using CMB to generate the actual form fields.
Expand Down Expand Up @@ -102,6 +103,12 @@ If including the library in your plugin or theme:

## Most Recent Changes

### 2.1.0

#### Bug Fixes

* Fix user fields not saving. Props [achavez](https://github.com/achavez), ([#417](https://github.com/WebDevStudios/CMB2/pull/417)).

### 2.0.9

#### Enhancements
Expand Down
21 changes: 20 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://webdevstudios.com
Tags: metaboxes, forms, fields, options, settings
Requires at least: 3.8.0
Tested up to: 4.3
Stable tag: 2.0.9
Stable tag: 2.1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -53,6 +53,7 @@ You can see a list of available field types [here](https://github.com/WebDevStud
* [CMB Field Type: Slider](https://github.com/qmatt/cmb2-field-slider) from [mattkrupnik](https://github.com/mattkrupnik/): Adds a jQuery UI Slider field.
* [WDS CMB2 Date Range Field](https://github.com/WebDevStudios/CMB2-Date-Range-Field) from [dustyf](https://github.com/dustyf) of [WebDevStudios](https://github.com/WebDevStudios): Adds a date range field.
* [CMB2 Remote Image Select](https://github.com/WebDevStudios/CMB2-Remote-Image-Select-Field) from [JayWood](https://github.com/JayWood) of [WebDevStudios](https://github.com/WebDevStudios): Allows users to enter a URL in a text field and select a single image for use in post meta. Similar to Facebook's featured image selector.
* [CMB Field Type: Sorter](https://wordpress.org/plugins/cmb-field-type-sorter/): This plugin gives you two CMB field types based on the Sorter script.

##### Other Helpful Resources
* [Taxonomy_MetaData](https://github.com/jtsternberg/Taxonomy_MetaData#to-use-taxonomy_metadata-with-custom-metaboxes-and-fields): WordPress Helper Class for saving pseudo-metadata for taxonomy terms. Includes an extended class for using CMB to generate the actual form fields.
Expand All @@ -75,6 +76,12 @@ A complete list of all our awesome contributors found here: [github.com/WebDevSt

### Most Recent Changes

#### 2.1.0

##### Bug Fixes

* Fix user fields not saving. Props [achavez](https://github.com/achavez), ([#417](https://github.com/WebDevStudios/CMB2/pull/417)).

#### 2.0.9

##### Enhancements
Expand Down Expand Up @@ -127,6 +134,12 @@ FAQ's usually end up in the [github wiki](https://github.com/WebDevStudios/CMB2/

== Changelog ==

### 2.1.0

#### Bug Fixes

* Fix user fields not saving. Props [achavez](https://github.com/achavez), ([#417](https://github.com/WebDevStudios/CMB2/pull/417)).

### 2.0.9 - 2015-07-28

#### Bug Fixes
Expand Down Expand Up @@ -491,6 +504,12 @@ It is now passed a null value vs saved value. If null is returned, default sanit

== Upgrade Notice ==

### 2.1.0

#### Bug Fixes

* Fix user fields not saving. Props [achavez](https://github.com/achavez), ([#417](https://github.com/WebDevStudios/CMB2/pull/417)).

### 2.0.9 - 2015-07-28

#### Bug Fixes
Expand Down

0 comments on commit 4aeaa0d

Please sign in to comment.