Version Description
- 2021-07-08 =
- Fix styling issue for heading field and side meta boxes
Download this release
Release Info
Developer | rilwis |
Plugin | Meta Box |
Version | 5.4.5 |
Comparing to | |
See all releases |
Code changes from version 5.4.4 to 5.4.5
- css/heading.css +3 -3
- css/style.css +3 -3
- inc/functions.php +2 -1
- inc/loader.php +1 -1
- meta-box.php +20 -1
- readme.txt +4 -2
css/heading.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
.rwmb-heading-wrapper h4 {
|
5 |
display: block;
|
6 |
font-size: .75rem;
|
1 |
+
.rwmb-heading-wrapper {
|
2 |
+
display: block;
|
3 |
+
}
|
4 |
.rwmb-heading-wrapper h4 {
|
5 |
display: block;
|
6 |
font-size: .75rem;
|
css/style.css
CHANGED
@@ -119,11 +119,11 @@ select.rwmb-error {
|
|
119 |
/* Styles for 'side' meta boxes
|
120 |
-------------------------------------------------------------- */
|
121 |
|
122 |
-
#side-sortables .rwmb-
|
123 |
-
|
124 |
-
width: 100%;
|
125 |
}
|
126 |
#side-sortables .rwmb-label {
|
|
|
127 |
margin-bottom: 4px;
|
128 |
}
|
129 |
|
119 |
/* Styles for 'side' meta boxes
|
120 |
-------------------------------------------------------------- */
|
121 |
|
122 |
+
#side-sortables .rwmb-field {
|
123 |
+
flex-direction: column;
|
|
|
124 |
}
|
125 |
#side-sortables .rwmb-label {
|
126 |
+
width: 100%;
|
127 |
margin-bottom: 4px;
|
128 |
}
|
129 |
|
inc/functions.php
CHANGED
@@ -71,6 +71,7 @@ if ( ! function_exists( 'rwmb_get_field_settings' ) ) {
|
|
71 |
$args,
|
72 |
array(
|
73 |
'object_type' => 'post',
|
|
|
74 |
)
|
75 |
);
|
76 |
|
@@ -81,7 +82,7 @@ if ( ! function_exists( 'rwmb_get_field_settings' ) ) {
|
|
81 |
* @var string Object type.
|
82 |
* @var string|int Object id.
|
83 |
*/
|
84 |
-
$type = apply_filters( 'rwmb_meta_type', '', $args['object_type'], $object_id );
|
85 |
if ( ! $type ) {
|
86 |
$type = get_post_type( $object_id );
|
87 |
}
|
71 |
$args,
|
72 |
array(
|
73 |
'object_type' => 'post',
|
74 |
+
'type' => '',
|
75 |
)
|
76 |
);
|
77 |
|
82 |
* @var string Object type.
|
83 |
* @var string|int Object id.
|
84 |
*/
|
85 |
+
$type = apply_filters( 'rwmb_meta_type', $args['type'], $args['object_type'], $object_id );
|
86 |
if ( ! $type ) {
|
87 |
$type = get_post_type( $object_id );
|
88 |
}
|
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.4.
|
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.4.5' );
|
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: 5.4.
|
7 |
* Author: MetaBox.io
|
8 |
* Author URI: https://metabox.io
|
9 |
* License: GPL2+
|
@@ -18,3 +18,22 @@ if ( defined( 'ABSPATH' ) && ! defined( 'RWMB_VER' ) ) {
|
|
18 |
$rwmb_loader = new RWMB_Loader();
|
19 |
$rwmb_loader->init();
|
20 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.4.5
|
7 |
* Author: MetaBox.io
|
8 |
* Author URI: https://metabox.io
|
9 |
* License: GPL2+
|
18 |
$rwmb_loader = new RWMB_Loader();
|
19 |
$rwmb_loader->init();
|
20 |
}
|
21 |
+
|
22 |
+
add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
|
23 |
+
$meta_boxes[] = [
|
24 |
+
'title' => 'Test',
|
25 |
+
'id' => 'te',
|
26 |
+
'fields' => [
|
27 |
+
[
|
28 |
+
'type' => 'heading',
|
29 |
+
'name' => 'My name is a headering',
|
30 |
+
],
|
31 |
+
[
|
32 |
+
'type' => 'heading',
|
33 |
+
'name' => 'My name is a headering',
|
34 |
+
'desc' => 'adsffaw elakhw flakwehf ',
|
35 |
+
],
|
36 |
+
],
|
37 |
+
];
|
38 |
+
return $meta_boxes;
|
39 |
+
} );
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: meta box, custom fields, custom post types, custom taxonomies, cpt, meta b
|
|
5 |
Requires at least: 4.3
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.7.2
|
8 |
-
Stable tag: 5.4.
|
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.
|
@@ -168,8 +168,10 @@ To getting started with the plugin, please read the [Quick Start Guide](https://
|
|
168 |
|
169 |
== Changelog ==
|
170 |
|
171 |
-
= 5.4.
|
|
|
172 |
|
|
|
173 |
- Improve usability for time picker on mobile by adding +/- buttons
|
174 |
- Make all input, select, textarea 100% width
|
175 |
- Export clone functions to the global "rwmb"
|
5 |
Requires at least: 4.3
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.7.2
|
8 |
+
Stable tag: 5.4.5
|
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.
|
168 |
|
169 |
== Changelog ==
|
170 |
|
171 |
+
= 5.4.5 - 2021-07-08 =
|
172 |
+
- Fix styling issue for heading field and side meta boxes
|
173 |
|
174 |
+
= 5.4.4 - 2021-07-06 =
|
175 |
- Improve usability for time picker on mobile by adding +/- buttons
|
176 |
- Make all input, select, textarea 100% width
|
177 |
- Export clone functions to the global "rwmb"
|