Meta Box - Version 4.16.1

Version Description

Download this release

Release Info

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

Code changes from version 4.16.0 to 4.16.1

inc/fields/file.php CHANGED
@@ -395,7 +395,7 @@ class RWMB_File_Field extends RWMB_Field {
395
  *
396
  * @return array|bool False if file not found. Array of (id, name, path, url) on success.
397
  */
398
- public static function file_info( $file, $args = array(), $field ) {
399
  if ( $field['upload_dir'] ) {
400
  return self::file_info_custom_dir( $file, $field );
401
  }
395
  *
396
  * @return array|bool False if file not found. Array of (id, name, path, url) on success.
397
  */
398
+ public static function file_info( $file, $args = array(), $field = array() ) {
399
  if ( $field['upload_dir'] ) {
400
  return self::file_info_custom_dir( $file, $field );
401
  }
inc/fields/image-advanced.php CHANGED
@@ -67,8 +67,8 @@ class RWMB_Image_Advanced_Field extends RWMB_Media_Field {
67
  *
68
  * @return array|bool False if file not found. Array of image info on success.
69
  */
70
- public static function file_info( $file, $args = array(), $field ) {
71
- return RWMB_Image_Field::file_info( $file, $args );
72
  }
73
 
74
  /**
67
  *
68
  * @return array|bool False if file not found. Array of image info on success.
69
  */
70
+ public static function file_info( $file, $args = array(), $field = array() ) {
71
+ return RWMB_Image_Field::file_info( $file, $args, $field );
72
  }
73
 
74
  /**
inc/fields/image.php CHANGED
@@ -105,7 +105,7 @@ class RWMB_Image_Field extends RWMB_File_Field {
105
  *
106
  * @return array|bool False if file not found. Array of image info on success.
107
  */
108
- public static function file_info( $file, $args = array(), $field ) {
109
  $path = get_attached_file( $file );
110
  if ( ! $path ) {
111
  return false;
105
  *
106
  * @return array|bool False if file not found. Array of image info on success.
107
  */
108
+ public static function file_info( $file, $args = array(), $field = array() ) {
109
  $path = get_attached_file( $file );
110
  if ( ! $path ) {
111
  return false;
inc/fields/single-image.php CHANGED
@@ -63,12 +63,12 @@ class RWMB_Single_Image_Field extends RWMB_Image_Advanced_Field {
63
  $value = RWMB_Field::get_value( $field, $args, $post_id );
64
 
65
  if ( ! is_array( $value ) ) {
66
- return RWMB_Image_Field::file_info( $value, $args );
67
  }
68
 
69
  $return = array();
70
  foreach ( $value as $image_id ) {
71
- $return[] = RWMB_Image_Field::file_info( $image_id, $args );
72
  }
73
 
74
  return $return;
63
  $value = RWMB_Field::get_value( $field, $args, $post_id );
64
 
65
  if ( ! is_array( $value ) ) {
66
+ return RWMB_Image_Field::file_info( $value, $args, $field );
67
  }
68
 
69
  $return = array();
70
  foreach ( $value as $image_id ) {
71
+ $return[] = RWMB_Image_Field::file_info( $image_id, $args, $field );
72
  }
73
 
74
  return $return;
inc/fields/video.php CHANGED
@@ -49,7 +49,7 @@ class RWMB_Video_Field extends RWMB_Media_Field {
49
  *
50
  * @return array|bool False if file not found. Array of image info on success.
51
  */
52
- public static function file_info( $file_id, $args = array(), $field ) {
53
  if ( ! get_attached_file( $file_id ) ) {
54
  return false;
55
  }
49
  *
50
  * @return array|bool False if file not found. Array of image info on success.
51
  */
52
+ public static function file_info( $file_id, $args = array(), $field = array() ) {
53
  if ( ! get_attached_file( $file_id ) ) {
54
  return false;
55
  }
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.16.0' );
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.16.1' );
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: 4.16.0
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.16.1
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: 5.0.3
7
- Stable tag: 4.16.0
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: 5.0.3
7
+ Stable tag: 4.16.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.