Version Description
- 2022-09-16 =
- Fix file_upload not working with required validation
- Fix wrong text domain
- Fix button group option to display horizontally not save in the builder
Download this release
Release Info
Developer | rilwis |
Plugin | Meta Box |
Version | 5.6.7 |
Comparing to | |
See all releases |
Code changes from version 5.6.6 to 5.6.7
- inc/about/sections/products.php +5 -5
- inc/fields/button-group.php +5 -9
- inc/loader.php +1 -1
- js/media.js +1 -1
- meta-box.php +1 -1
- readme.txt +16 -2
inc/about/sections/products.php
CHANGED
@@ -9,11 +9,11 @@
|
|
9 |
|
10 |
<div class="postbox">
|
11 |
<h3 class="hndle">
|
12 |
-
<span><?php esc_html_e( 'Our WordPress Products', '
|
13 |
</h3>
|
14 |
<div class="inside">
|
15 |
-
<p><?php esc_html_e( 'Like this plugin? Check out our other WordPress products:', '
|
16 |
-
<p><a href="https://wpslimseo.com?utm_source=WordPress&utm_medium=link&utm_campaign=meta-box" target="_blank" rel="noopenner noreferrer">Slim SEO</a> - <?php esc_html_e( 'Automated & fast SEO plugin for WordPress', '
|
17 |
-
<p><a href="https://gretathemes.com/wordpress-themes/estar/?utm_source=WordPress&utm_medium=link&utm_campaign=meta-box" target="_blank" rel="noopenner noreferrer">eStar</a> - <?php esc_html_e( 'A super fast, lightweight and highly customizable WordPress theme', '
|
18 |
</div>
|
19 |
-
</div>
|
9 |
|
10 |
<div class="postbox">
|
11 |
<h3 class="hndle">
|
12 |
+
<span><?php esc_html_e( 'Our WordPress Products', 'meta-box' ) ?></span>
|
13 |
</h3>
|
14 |
<div class="inside">
|
15 |
+
<p><?php esc_html_e( 'Like this plugin? Check out our other WordPress products:', 'meta-box' ) ?></p>
|
16 |
+
<p><a href="https://wpslimseo.com?utm_source=WordPress&utm_medium=link&utm_campaign=meta-box" target="_blank" rel="noopenner noreferrer">Slim SEO</a> - <?php esc_html_e( 'Automated & fast SEO plugin for WordPress', 'meta-box' ) ?></p>
|
17 |
+
<p><a href="https://gretathemes.com/wordpress-themes/estar/?utm_source=WordPress&utm_medium=link&utm_campaign=meta-box" target="_blank" rel="noopenner noreferrer">eStar</a> - <?php esc_html_e( 'A super fast, lightweight and highly customizable WordPress theme', 'meta-box' ) ?></p>
|
18 |
</div>
|
19 |
+
</div>
|
inc/fields/button-group.php
CHANGED
@@ -14,7 +14,7 @@ class RWMB_Button_Group_Field extends RWMB_Choice_Field {
|
|
14 |
*/
|
15 |
public static function admin_enqueue_scripts() {
|
16 |
wp_enqueue_style( 'rwmb-button-group', RWMB_CSS_URL . 'button-group.css', '', RWMB_VER );
|
17 |
-
wp_enqueue_script( 'rwmb-button-group', RWMB_JS_URL . 'button-group.js',
|
18 |
}
|
19 |
|
20 |
/**
|
@@ -30,7 +30,7 @@ class RWMB_Button_Group_Field extends RWMB_Choice_Field {
|
|
30 |
|
31 |
$output = sprintf(
|
32 |
'<ul class="rwmb-button-input-list %s">',
|
33 |
-
$field['inline'] ? '
|
34 |
);
|
35 |
$output .= $walker->walk( $options, -1 );
|
36 |
$output .= '</ul>';
|
@@ -47,18 +47,14 @@ class RWMB_Button_Group_Field extends RWMB_Choice_Field {
|
|
47 |
*/
|
48 |
public static function normalize( $field ) {
|
49 |
$field = parent::normalize( $field );
|
50 |
-
$field = wp_parse_args(
|
51 |
-
|
52 |
-
|
53 |
-
'inline' => null,
|
54 |
-
)
|
55 |
-
);
|
56 |
|
57 |
$field = $field['multiple'] ? RWMB_Multiple_Values_Field::normalize( $field ) : $field;
|
58 |
$field = RWMB_Input_Field::normalize( $field );
|
59 |
|
60 |
$field['flatten'] = true;
|
61 |
-
$field['inline'] = ! $field['multiple'] && ! isset( $field['inline'] ) ? true : $field['inline'];
|
62 |
|
63 |
return $field;
|
64 |
}
|
14 |
*/
|
15 |
public static function admin_enqueue_scripts() {
|
16 |
wp_enqueue_style( 'rwmb-button-group', RWMB_CSS_URL . 'button-group.css', '', RWMB_VER );
|
17 |
+
wp_enqueue_script( 'rwmb-button-group', RWMB_JS_URL . 'button-group.js', [ 'rwmb' ], RWMB_VER, true );
|
18 |
}
|
19 |
|
20 |
/**
|
30 |
|
31 |
$output = sprintf(
|
32 |
'<ul class="rwmb-button-input-list %s">',
|
33 |
+
$field['inline'] ? 'rwmb-inline' : ''
|
34 |
);
|
35 |
$output .= $walker->walk( $options, -1 );
|
36 |
$output .= '</ul>';
|
47 |
*/
|
48 |
public static function normalize( $field ) {
|
49 |
$field = parent::normalize( $field );
|
50 |
+
$field = wp_parse_args( $field, [
|
51 |
+
'inline' => true,
|
52 |
+
] );
|
|
|
|
|
|
|
53 |
|
54 |
$field = $field['multiple'] ? RWMB_Multiple_Values_Field::normalize( $field ) : $field;
|
55 |
$field = RWMB_Input_Field::normalize( $field );
|
56 |
|
57 |
$field['flatten'] = true;
|
|
|
58 |
|
59 |
return $field;
|
60 |
}
|
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.6.
|
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.6.7' );
|
22 |
|
23 |
list( $path, $url ) = self::get_path( dirname( dirname( __FILE__ ) ) );
|
24 |
|
js/media.js
CHANGED
@@ -135,7 +135,7 @@
|
|
135 |
collection.reset();
|
136 |
} );
|
137 |
|
138 |
-
collection.on( '
|
139 |
var ids = collection.pluck( 'id' ).join( ',' );
|
140 |
that.$input.val( ids ).trigger( 'change', [that.$( '.rwmb-media-input' )] );
|
141 |
}, 500 ) );
|
135 |
collection.reset();
|
136 |
} );
|
137 |
|
138 |
+
collection.on( 'all', _.debounce( function() {
|
139 |
var ids = collection.pluck( 'id' ).join( ',' );
|
140 |
that.$input.val( ids ).trigger( 'change', [that.$( '.rwmb-media-input' )] );
|
141 |
}, 500 ) );
|
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.6.
|
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.6.7
|
7 |
* Author: MetaBox.io
|
8 |
* Author URI: https://metabox.io
|
9 |
* License: GPL2+
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: https://metabox.io/pricing/
|
|
4 |
Tags: meta box, custom fields, custom post types, custom taxonomies, cpt, meta boxes, custom field, post type, taxonomy, meta, admin, advanced, custom, edit, field, file, image, magic fields, post types, more fields, post, repeater, simple fields, text, textarea, type, cms, fields post
|
5 |
Requires at least: 4.3
|
6 |
Requires PHP: 5.6
|
7 |
-
Tested up to: 6.0.
|
8 |
-
Stable tag: 5.6.
|
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 your custom post types in WordPress.
|
@@ -139,6 +139,15 @@ Here are a few guides to quickly get you started with Meta Box and creating your
|
|
139 |
|
140 |
Check out more on the [Meta Box Documentation](https://docs.metabox.io/) page.
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
== Installation ==
|
143 |
|
144 |
From within WordPress
|
@@ -168,6 +177,11 @@ To getting started with the plugin, please read the [Quick Start Guide](https://
|
|
168 |
|
169 |
== Changelog ==
|
170 |
|
|
|
|
|
|
|
|
|
|
|
171 |
= 5.6.6 - 2022-08-05 =
|
172 |
- Fix meta box not showing for settings page under Media
|
173 |
- Fix upload to the custom folder does not display the image
|
4 |
Tags: meta box, custom fields, custom post types, custom taxonomies, cpt, meta boxes, custom field, post type, taxonomy, meta, admin, advanced, custom, edit, field, file, image, magic fields, post types, more fields, post, repeater, simple fields, text, textarea, type, cms, fields post
|
5 |
Requires at least: 4.3
|
6 |
Requires PHP: 5.6
|
7 |
+
Tested up to: 6.0.2
|
8 |
+
Stable tag: 5.6.7
|
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 your custom post types in WordPress.
|
139 |
|
140 |
Check out more on the [Meta Box Documentation](https://docs.metabox.io/) page.
|
141 |
|
142 |
+
### Other products
|
143 |
+
|
144 |
+
If you love this plugin, please try our other great products:
|
145 |
+
|
146 |
+
- [Slim SEO](https://wpslimseo.com): A lightweight and full-featured SEO plugin for WordPress
|
147 |
+
- [Slim SEO Schema](https://wpslimseo.com/slim-seo-schema/): The best schema plugin for WordPress
|
148 |
+
- [Auto Listings](https://wpautolistings.com): The car sale and dealership plugin for WordPress
|
149 |
+
- [GretaThemes](https://gretathemes.com): Beautiful and easy to use WordPress themes
|
150 |
+
|
151 |
== Installation ==
|
152 |
|
153 |
From within WordPress
|
177 |
|
178 |
== Changelog ==
|
179 |
|
180 |
+
= 5.6.7 - 2022-09-16 =
|
181 |
+
- Fix file_upload not working with required validation
|
182 |
+
- Fix wrong text domain
|
183 |
+
- Fix button group option to display horizontally not save in the builder
|
184 |
+
|
185 |
= 5.6.6 - 2022-08-05 =
|
186 |
- Fix meta box not showing for settings page under Media
|
187 |
- Fix upload to the custom folder does not display the image
|