From 459bfb7d8385b6b678fabfc065452f1c630f50bc Mon Sep 17 00:00:00 2001 From: Anh Date: Wed, 12 Jul 2017 10:56:58 +0700 Subject: [PATCH] Version 4.12.2 --- .travis.yml | 1 + CHANGELOG.md | 10 +++++++++- inc/loader.php | 2 +- meta-box.php | 2 +- package.json | 2 +- readme.txt | 14 +++++--------- 6 files changed, 18 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 23f6b01ed..c1998794a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ php: - 5.5 - 5.4 - 5.3 + - 5.2 matrix: fast_finish: true diff --git a/CHANGELOG.md b/CHANGELOG.md index b83926572..76a290789 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a ## [Unreleased] +## [4.12.2] - 2017-07-12 +### Added +- Added new `media:reset` event for media fields to clear the selection. +### Changed +- Improve meta box registry that can handle various types of meta boxes. Used for term meta, user meta, settings pages. +- Improve the way set current object id for meta box and add fields to the registry. + ## [4.12.1] - 2017-07-05 ### Fixed - Helper function doesn't work. #1144. @@ -684,7 +691,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a ## 1.0 - procedural code -[Unreleased]: https://github.com/rilwis/meta-box/compare/4.12.1...HEAD +[Unreleased]: https://github.com/rilwis/meta-box/compare/4.12.2...HEAD +[4.12.2]: https://github.com/rilwis/meta-box/compare/4.12.1...4.12.2 [4.12.1]: https://github.com/rilwis/meta-box/compare/4.12...4.12.1 [4.12]: https://github.com/rilwis/meta-box/compare/4.11.3...4.12 [4.11.3]: https://github.com/rilwis/meta-box/compare/4.11.2...4.11.3 diff --git a/inc/loader.php b/inc/loader.php index 7ef71adf2..d5612df19 100644 --- a/inc/loader.php +++ b/inc/loader.php @@ -18,7 +18,7 @@ class RWMB_Loader { */ protected function constants() { // Script version, used to add version for scripts and styles. - define( 'RWMB_VER', '4.12.1' ); + define( 'RWMB_VER', '4.12.2' ); list( $path, $url ) = self::get_path( dirname( dirname( __FILE__ ) ) ); diff --git a/meta-box.php b/meta-box.php index c0320d129..44bf4ee7e 100644 --- a/meta-box.php +++ b/meta-box.php @@ -3,7 +3,7 @@ * Plugin Name: Meta Box * Plugin URI: https://metabox.io * Description: Create custom meta boxes and custom fields in WordPress. - * Version: 4.12.1 + * Version: 4.12.2 * Author: MetaBox.io * Author URI: https://metabox.io * License: GPL2+ diff --git a/package.json b/package.json index 90eb6694c..3025a2a91 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meta-box", - "version": "4.12.1", + "version": "4.12.2", "description": "A powerful, professional developer toolkit to create custom meta boxes and custom fields for WordPress websites.", "keywords": [ "meta box", diff --git a/readme.txt b/readme.txt index f63b11e5d..4490da5cc 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: http://paypal.me/anhtnt Tags: meta-box, custom fields, custom field, meta, meta-boxes, admin, advanced, custom, edit, field, file, image, magic fields, matrix, more fields, Post, repeater, simple fields, text, textarea, type, cms, fields post Requires at least: 4.1 Tested up to: 4.8 -Stable tag: 4.12.1 +Stable tag: 4.12.2 License: GPLv2 or later Meta Box plugin is a powerful, professional developer toolkit to create custom meta boxes and custom fields for WordPress. @@ -132,16 +132,12 @@ To getting started with the plugin, please read [this tutorial](https://metabox. #### Fixed - Helper function doesn't work. #1144. -= 4.12 - 2017-07-04 = += 4.12.2 - 2017-07-12 = #### Added -- Completed the storage abstraction. All the actions add/get/update/delete post meta now use the storage methods. Make it easy to extend for other extensions for term/user meta and settings pages. -- Added `autofocus`, `autocomplete` HTML5 attribute to inputs. -- Added `alpha_channel` to `color` field. Set it to `true` to allow picking colors with opacity. -- Click on the image will open a popup for re-select image. Works for `image_advanced` and `image_upload` (`plupload_image`) fields. - +- Added new `media:reset` event for media fields to clear the selection. #### Changed -- Auto display oembed media when pasting the URL, without click "Preview" button (and it's removed). -- Better styles for media fields. Use the loading icon from WordPress. +- Improve meta box registry that can handle various types of meta boxes. Used for term meta, user meta, settings pages. +- Improve the way set current object id for meta box and add fields to the registry. #### Fixed - Fix cloning an editor inside a group in WordPress 4.8. Caused by updated version of TinyMCE using Promise.