Meta Box - Version 5.2.10

Version Description

  • 2020-04-17 =
  • Hotfix for getting meta value for checkbox list.
Download this release

Release Info

Developer rilwis
Plugin Icon 128x128 Meta Box
Version 5.2.10
Comparing to
See all releases

Code changes from version 5.2.9 to 5.2.10

Files changed (4) hide show
  1. inc/field.php +1 -1
  2. inc/loader.php +1 -1
  3. meta-box.php +1 -1
  4. readme.txt +4 -1
inc/field.php CHANGED
@@ -224,7 +224,7 @@ abstract class RWMB_Field {
224
 
225
  // If users set std for a cloneable checkbox list field in the Builder, they can only set [value1, value2]. We need to transform it to [[value1, value2]].
226
  // In other cases, make sure each value is an array.
227
- $meta = is_array( $first ) ? array_walk( $meta, 'RWMB_Helpers_Array::ensure' ) : array( $meta );
228
  }
229
  } elseif ( $field['multiple'] ) {
230
  $meta = RWMB_Helpers_Array::ensure( $meta );
224
 
225
  // If users set std for a cloneable checkbox list field in the Builder, they can only set [value1, value2]. We need to transform it to [[value1, value2]].
226
  // In other cases, make sure each value is an array.
227
+ $meta = is_array( $first ) ? array_map( 'RWMB_Helpers_Array::ensure', $meta ) : array( $meta );
228
  }
229
  } elseif ( $field['multiple'] ) {
230
  $meta = RWMB_Helpers_Array::ensure( $meta );
inc/loader.php CHANGED
@@ -18,7 +18,7 @@ class RWMB_Loader {
18
  */
19
  protected function constants() {
20
  // Script version, used to add version for scripts and styles.
21
- define( 'RWMB_VER', '5.2.9' );
22
 
23
  list( $path, $url ) = self::get_path( dirname( dirname( __FILE__ ) ) );
24
 
18
  */
19
  protected function constants() {
20
  // Script version, used to add version for scripts and styles.
21
+ define( 'RWMB_VER', '5.2.10' );
22
 
23
  list( $path, $url ) = self::get_path( dirname( dirname( __FILE__ ) ) );
24
 
meta-box.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Meta Box
4
  * Plugin URI: https://metabox.io
5
  * Description: Create custom meta boxes and custom fields in WordPress.
6
- * Version: 5.2.9
7
  * Author: MetaBox.io
8
  * Author URI: https://metabox.io
9
  * License: GPL2+
3
  * Plugin Name: Meta Box
4
  * Plugin URI: https://metabox.io
5
  * Description: Create custom meta boxes and custom fields in WordPress.
6
+ * Version: 5.2.10
7
  * Author: MetaBox.io
8
  * Author URI: https://metabox.io
9
  * License: GPL2+
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: meta-box, custom fields, custom field, meta, meta-boxes, admin, advanced,
5
  Requires at least: 4.3
6
  Requires PHP: 5.3
7
  Tested up to: 5.4
8
- Stable tag: 5.2.9
9
  License: GPLv2 or later
10
 
11
  Meta Box plugin is a powerful, professional developer toolkit to create custom meta boxes and custom fields for WordPress.
@@ -167,6 +167,9 @@ To getting started with the plugin, please read the [Quick Start Guide](https://
167
 
168
  == Changelog ==
169
 
 
 
 
170
  = 5.2.9 - 2020-04-17 =
171
  - Fix cloning default value not working for some fields.
172
 
5
  Requires at least: 4.3
6
  Requires PHP: 5.3
7
  Tested up to: 5.4
8
+ Stable tag: 5.2.10
9
  License: GPLv2 or later
10
 
11
  Meta Box plugin is a powerful, professional developer toolkit to create custom meta boxes and custom fields for WordPress.
167
 
168
  == Changelog ==
169
 
170
+ = 5.2.10 - 2020-04-17 =
171
+ - Hotfix for getting meta value for checkbox list.
172
+
173
  = 5.2.9 - 2020-04-17 =
174
  - Fix cloning default value not working for some fields.
175