Meta Box - Version 4.14.9

Version Description

Download this release

Release Info

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

Code changes from version 4.14.8 to 4.14.9

Files changed (4) hide show
  1. inc/fields/taxonomy.php +4 -4
  2. inc/loader.php +1 -1
  3. meta-box.php +1 -1
  4. readme.txt +1 -1
inc/fields/taxonomy.php CHANGED
@@ -121,9 +121,9 @@ class RWMB_Taxonomy_Field extends RWMB_Object_Choice_Field {
121
  return '';
122
  }
123
 
124
- $meta = wp_get_object_terms( $object_id, $field['taxonomy'], [
125
  'orderby' => 'term_order',
126
- ] );
127
  $meta = wp_list_pluck( $meta, 'term_id' );
128
 
129
  return $field['multiple'] ? $meta : reset( $meta );
@@ -143,9 +143,9 @@ class RWMB_Taxonomy_Field extends RWMB_Object_Choice_Field {
143
  if ( ! $post_id ) {
144
  $post_id = get_the_ID();
145
  }
146
- $value = wp_get_object_terms( $post_id, $field['taxonomy'], [
147
  'orderby' => 'term_order',
148
- ] );
149
 
150
  // Get single value if necessary.
151
  if ( ! $field['clone'] && ! $field['multiple'] && is_array( $value ) ) {
121
  return '';
122
  }
123
 
124
+ $meta = wp_get_object_terms( $object_id, $field['taxonomy'], array(
125
  'orderby' => 'term_order',
126
+ ) );
127
  $meta = wp_list_pluck( $meta, 'term_id' );
128
 
129
  return $field['multiple'] ? $meta : reset( $meta );
143
  if ( ! $post_id ) {
144
  $post_id = get_the_ID();
145
  }
146
+ $value = wp_get_object_terms( $post_id, $field['taxonomy'], array(
147
  'orderby' => 'term_order',
148
+ ) );
149
 
150
  // Get single value if necessary.
151
  if ( ! $field['clone'] && ! $field['multiple'] && is_array( $value ) ) {
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.8' );
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.9' );
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.14.8
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.9
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.5
7
- Stable tag: 4.14.8
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.5
7
+ Stable tag: 4.14.9
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.