Meta Box - Version 4.3.5

Version Description

  • Bug fix: fatal error in PHP 5.2
  • Bug fix: save empty values of clonable fields
Download this release

Release Info

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

Code changes from version 4.3.4 to 4.3.5

Files changed (4) hide show
  1. inc/fields/select.php +1 -0
  2. inc/meta-box.php +11 -2
  3. meta-box.php +1 -1
  4. readme.txt +7 -8
inc/fields/select.php CHANGED
@@ -119,6 +119,7 @@ if ( !class_exists( 'RWMB_Select_Field' ) )
119
  * Creates html for options
120
  *
121
  * @param array $field
 
122
  *
123
  * @return array
124
  */
119
  * Creates html for options
120
  *
121
  * @param array $field
122
+ * @param mixed $meta
123
  *
124
  * @return array
125
  */
inc/meta-box.php CHANGED
@@ -74,7 +74,7 @@ if ( ! class_exists( 'RW_Meta_Box' ) )
74
  {
75
  $class = self::get_class_name( $field );
76
  if ( method_exists( $class, 'add_actions' ) )
77
- $class::add_actions();
78
  }
79
 
80
  // Add meta box
@@ -119,7 +119,7 @@ if ( ! class_exists( 'RW_Meta_Box' ) )
119
  // Enqueue scripts and styles for fields
120
  $class = self::get_class_name( $field );
121
  if ( method_exists( $class, 'admin_enqueue_scripts' ) )
122
- $class::admin_enqueue_scripts();
123
  }
124
 
125
  if ( $has_clone )
@@ -561,6 +561,15 @@ if ( ! class_exists( 'RW_Meta_Box' ) )
561
  }
562
  else
563
  {
 
 
 
 
 
 
 
 
 
564
  update_post_meta( $post_id, $name, $new );
565
  }
566
  }
74
  {
75
  $class = self::get_class_name( $field );
76
  if ( method_exists( $class, 'add_actions' ) )
77
+ call_user_func( array( $class, 'add_actions' ) );
78
  }
79
 
80
  // Add meta box
119
  // Enqueue scripts and styles for fields
120
  $class = self::get_class_name( $field );
121
  if ( method_exists( $class, 'admin_enqueue_scripts' ) )
122
+ call_user_func( array( $class, 'admin_enqueue_scripts' ) );
123
  }
124
 
125
  if ( $has_clone )
561
  }
562
  else
563
  {
564
+ if ( $field['clone'] )
565
+ {
566
+ $new = (array) $new;
567
+ foreach ( $new as $k => $v )
568
+ {
569
+ if ( '' === $v )
570
+ unset( $new[$k] );
571
+ }
572
+ }
573
  update_post_meta( $post_id, $name, $new );
574
  }
575
  }
meta-box.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Meta Box
4
  Plugin URI: http://www.deluxeblogtips.com/meta-box
5
  Description: Create meta box for editing pages in WordPress. Compatible with custom post types since WP 3.0
6
- Version: 4.3.4
7
  Author: Rilwis
8
  Author URI: http://www.deluxeblogtips.com
9
  License: GPL2+
3
  Plugin Name: Meta Box
4
  Plugin URI: http://www.deluxeblogtips.com/meta-box
5
  Description: Create meta box for editing pages in WordPress. Compatible with custom post types since WP 3.0
6
+ Version: 4.3.5
7
  Author: Rilwis
8
  Author URI: http://www.deluxeblogtips.com
9
  License: GPL2+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.deluxeblogtips.com/donate
4
  Tags: meta-box, custom-fields, custom-field, meta, meta-boxes
5
  Requires at least: 3.5
6
  Tested up to: 3.6.1
7
- Stable tag: 4.3.4
8
 
9
  Meta Box plugin helps you easily implement multiple meta boxes in editing pages in WordPress. Works with custom post types and various field types.
10
 
@@ -25,24 +25,19 @@ Meta Box plugin provides an API to easily implement custom meta boxes in editing
25
  - color
26
  - date, time, datetime
27
  - divider
28
- - email
29
  - file, file_advanced
30
  - heading
31
  - hidden
32
  - image, thickbox_image, plupload_image, image_advanced
33
  - map
34
- - number
35
- - oembed
36
  - password
37
  - post
38
  - radio
39
- - range
40
  - select, select_advanced (uses [select2](http://ivaynberg.github.com/select2/))
41
- - slider
42
  - taxonomy
43
- - text
44
  - textarea
45
- - url
46
  - wysiwyg
47
 
48
  [Project Page](http://www.deluxeblogtips.com/meta-box/) | [Getting Started](http://www.deluxeblogtips.com/meta-box/getting-started/) | [Support Forums](http://www.deluxeblogtips.com/forums/) | [Donate](http://www.deluxeblogtips.com/donate/)
@@ -63,6 +58,10 @@ To getting started with the plugin API, please read [this tutorial](http://www.d
63
 
64
  == Changelog ==
65
 
 
 
 
 
66
  = 4.3.4 =
67
  * Bug fix: not show upload button after delete image when reach max_file_upload. #347
68
  * Bug fix: autocomplete for map which conflicts with tags (terms) autocomplete
4
  Tags: meta-box, custom-fields, custom-field, meta, meta-boxes
5
  Requires at least: 3.5
6
  Tested up to: 3.6.1
7
+ Stable tag: 4.3.5
8
 
9
  Meta Box plugin helps you easily implement multiple meta boxes in editing pages in WordPress. Works with custom post types and various field types.
10
 
25
  - color
26
  - date, time, datetime
27
  - divider
 
28
  - file, file_advanced
29
  - heading
30
  - hidden
31
  - image, thickbox_image, plupload_image, image_advanced
32
  - map
 
 
33
  - password
34
  - post
35
  - radio
 
36
  - select, select_advanced (uses [select2](http://ivaynberg.github.com/select2/))
37
+ - slider, range
38
  - taxonomy
39
+ - text, url, email, number, oembed
40
  - textarea
 
41
  - wysiwyg
42
 
43
  [Project Page](http://www.deluxeblogtips.com/meta-box/) | [Getting Started](http://www.deluxeblogtips.com/meta-box/getting-started/) | [Support Forums](http://www.deluxeblogtips.com/forums/) | [Donate](http://www.deluxeblogtips.com/donate/)
58
 
59
  == Changelog ==
60
 
61
+ = 4.3.5 =
62
+ * Bug fix: fatal error in PHP 5.2
63
+ * Bug fix: save empty values of clonable fields
64
+
65
  = 4.3.4 =
66
  * Bug fix: not show upload button after delete image when reach max_file_upload. #347
67
  * Bug fix: autocomplete for map which conflicts with tags (terms) autocomplete