Meta Box - Version 4.14.2

Version Description

Download this release

Release Info

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

Code changes from version 4.14.1 to 4.14.2

inc/field.php CHANGED
@@ -286,6 +286,9 @@ abstract class RWMB_Field {
286
  * @param array $field The field parameters.
287
  */
288
  public static function save( $new, $old, $post_id, $field ) {
 
 
 
289
  $name = $field['id'];
290
  $storage = $field['storage'];
291
 
286
  * @param array $field The field parameters.
287
  */
288
  public static function save( $new, $old, $post_id, $field ) {
289
+ if ( empty( $field['id'] ) ) {
290
+ return;
291
+ }
292
  $name = $field['id'];
293
  $storage = $field['storage'];
294
 
inc/fields/taxonomy-advanced.php CHANGED
@@ -118,6 +118,9 @@ class RWMB_Taxonomy_Advanced_Field extends RWMB_Taxonomy_Field {
118
  * @return array
119
  */
120
  public static function terms_info( $field, $term_ids, $args ) {
 
 
 
121
  $args = wp_parse_args( array(
122
  'include' => $term_ids,
123
  'hide_empty' => false,
118
  * @return array
119
  */
120
  public static function terms_info( $field, $term_ids, $args ) {
121
+ if ( empty( $term_ids ) ) {
122
+ return array();
123
+ }
124
  $args = wp_parse_args( array(
125
  'include' => $term_ids,
126
  'hide_empty' => false,
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', '4.14.1' );
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', '4.14.2' );
22
 
23
  list( $path, $url ) = self::get_path( dirname( dirname( __FILE__ ) ) );
24
 
inc/meta-box.php CHANGED
@@ -432,12 +432,10 @@ class RW_Meta_Box {
432
  /**
433
  * Set the object ID.
434
  *
435
- * @param null|int $id Object ID. null means the current object ID.
436
  */
437
  public function set_object_id( $id = null ) {
438
- if ( null === $this->object_id ) {
439
- $this->object_id = $id;
440
- }
441
  }
442
 
443
  /**
432
  /**
433
  * Set the object ID.
434
  *
435
+ * @param mixed $id Object ID.
436
  */
437
  public function set_object_id( $id = null ) {
438
+ $this->object_id = $id;
 
 
439
  }
440
 
441
  /**
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: 4.14.1
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: 4.14.2
7
  * Author: MetaBox.io
8
  * Author URI: https://metabox.io
9
  * License: GPL2+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://metabox.io/pricing/
4
  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
5
  Requires at least: 4.3
6
  Tested up to: 4.9.4
7
- Stable tag: 4.14.1
8
  License: GPLv2 or later
9
 
10
  Meta Box plugin is a powerful, professional developer toolkit to create custom meta boxes and custom fields for WordPress.
4
  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
5
  Requires at least: 4.3
6
  Tested up to: 4.9.4
7
+ Stable tag: 4.14.2
8
  License: GPLv2 or later
9
 
10
  Meta Box plugin is a powerful, professional developer toolkit to create custom meta boxes and custom fields for WordPress.