Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Commit

Permalink
Update changelog, readmes, .pot file, and version number for 2.0.3 re…
Browse files Browse the repository at this point in the history
…lease
  • Loading branch information
jtsternberg committed Mar 15, 2015
1 parent d000937 commit 8e41351
Show file tree
Hide file tree
Showing 5 changed files with 184 additions and 129 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,26 @@ All notable changes to this project will be documented in this file.

## [Unreleased][unreleased]

*

## 2.0.3 - 2015-03-15

### Enhancements

* New constant, `CMB2_DIR`, which stores the file-path to the CMB2 directory.
* `text_date`, `text_time`, `text_date_timestamp`, `text_datetime_timestamp`, and ` text_datetime_timestamp_timezone` field types now take an arguments array so they can be extended by custom field types.
* Removed auto-scroll when adding groups. To re-add the feature, use the [snippet/plugin here](https://github.com/WebDevStudios/CMB2-Snippet-Library/blob/master/javascript/cmb2-auto-scroll-to-new-group.php). ([#205](https://github.com/WebDevStudios/CMB2/issues/205))
* Updated Timepicker utilizing the [@trentrichardson](https://github.com/trentrichardson) jQuery Timepicker add-on (https://github.com/trentrichardson/jQuery-Timepicker-Addon), and updated Datepicker styles. Props [JonMasterson](https://github.com/JonMasterson). ([#204](https://github.com/WebDevStudios/CMB2/issues/204), [#206](https://github.com/WebDevStudios/CMB2/issues/206), [#45](https://github.com/WebDevStudios/CMB2/issues/45)).
* Added a callback option for the field default value. The callback gets passed an array of all the field parameters as the first argument, and the field object as the second argument. (which means you can get the post id using `$field->object_id`). ([#233](https://github.com/WebDevStudios/CMB2/issues/233)).
* New `CMB2::get_field()` method and `cmb2_get_field` helper function for retrieving a `CMB2_Field` object from the array of registered fields for a metabox.
* New `CMB2::get_sanitized_values()` method and `cmb2_get_metabox_sanitized_values` helper function for retrieving sanitized values from an array of values (usually `$_POST` data).
* New `'save_fields'` metabox property that can be used to disable (by setting `'save_fields' => false`) the automatic saving of the fields when the form is submitted. These can be useful when you want to handle the saving of the fields yourself, or want to use submitted data for other purposes like generating new posts, or sending emails, etc.

### Bug Fixes

* Fix commented out text_datetime_timestamp_timezone field registration example in `example-functions.php`. Props [cliffordp](https://github.com/cliffordp), ([#203](https://github.com/WebDevStudios/CMB2/pull/203)).
* Fix sidebar styling for money fields and fields with textareas. ([#234](https://github.com/WebDevStudios/CMB2/issues/234))
* Fix `CMB2_Sanitize` class to properly use the stripslashed value (which was added in [#162](https://github.com/WebDevStudios/CMB2/pull/162) but never used). Props [dustyf](https://github.com/dustyf), ([#241](https://github.com/WebDevStudios/CMB2/pull/241)).

## 2.0.2 - 2015-02-15

Expand Down
10 changes: 5 additions & 5 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Bill Erickson (@billerickson / billerickson.net)
* Andrew Norcross (@norcross / andrewnorcross.com)
*
* Version: 2.0.2
* Version: 2.0.3
*
* Text Domain: cmb2
* Domain Path: languages
Expand Down Expand Up @@ -42,19 +42,19 @@
or things might explode!
*************************************************************************/

if ( ! class_exists( 'cmb2_bootstrap_203_trunk', false ) ) {
if ( ! class_exists( 'cmb2_bootstrap_203', false ) ) {

/**
* Check for newest version of CMB
*/
class cmb2_bootstrap_203_trunk {
class cmb2_bootstrap_203 {

/**
* Current version number
* @var string
* @since 1.0.0
*/
const VERSION = '2.0.2';
const VERSION = '2.0.3';

/**
* Current version hook priority
Expand Down Expand Up @@ -128,6 +128,6 @@ public function l10ni18n() {
}

}
cmb2_bootstrap_203_trunk::go();
cmb2_bootstrap_203::go();

} // class exists check
Loading

0 comments on commit 8e41351

Please sign in to comment.