Version Description
Download this release
Release Info
Developer | rilwis |
Plugin | Meta Box |
Version | 4.14.8 |
Comparing to | |
See all releases |
Code changes from version 4.14.7 to 4.14.8
- inc/about/about.php +14 -1
- inc/loader.php +1 -1
- inc/meta-box.php +3 -0
- meta-box.php +1 -1
- readme.txt +1 -1
inc/about/about.php
CHANGED
@@ -138,9 +138,22 @@ class RWMB_About {
|
|
138 |
* or just the current site. Multisite only. Default is false.
|
139 |
*/
|
140 |
public function redirect( $plugin, $network_wide ) {
|
141 |
-
if ( ! $network_wide && 'meta-box/meta-box.php' === $plugin ) {
|
142 |
wp_safe_redirect( admin_url( 'index.php?page=meta-box-about' ) );
|
143 |
die;
|
144 |
}
|
145 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
}
|
138 |
* or just the current site. Multisite only. Default is false.
|
139 |
*/
|
140 |
public function redirect( $plugin, $network_wide ) {
|
141 |
+
if ( ! $network_wide && 'meta-box/meta-box.php' === $plugin && ! $this->is_bundled() ) {
|
142 |
wp_safe_redirect( admin_url( 'index.php?page=meta-box-about' ) );
|
143 |
die;
|
144 |
}
|
145 |
}
|
146 |
+
|
147 |
+
/**
|
148 |
+
* Check if Meta Box is bundled by TGM Activation Class.
|
149 |
+
*/
|
150 |
+
protected function is_bundled() {
|
151 |
+
// @codingStandardsIgnoreLine
|
152 |
+
foreach ( $_REQUEST as $key => $value ) {
|
153 |
+
if ( false !== strpos( $key, 'tgmpa' ) || false !== strpos( $value, 'tgmpa' ) ) {
|
154 |
+
return true;
|
155 |
+
}
|
156 |
+
}
|
157 |
+
return false;
|
158 |
+
}
|
159 |
}
|
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.
|
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.8' );
|
22 |
|
23 |
list( $path, $url ) = self::get_path( dirname( dirname( __FILE__ ) ) );
|
24 |
|
inc/meta-box.php
CHANGED
@@ -397,6 +397,9 @@ class RW_Meta_Box {
|
|
397 |
continue;
|
398 |
}
|
399 |
$value = RWMB_Field::call( $field, 'raw_meta', $this->object_id );
|
|
|
|
|
|
|
400 |
if (
|
401 |
( ! $field['multiple'] && '' !== $value )
|
402 |
|| ( $field['multiple'] && array() !== $value )
|
397 |
continue;
|
398 |
}
|
399 |
$value = RWMB_Field::call( $field, 'raw_meta', $this->object_id );
|
400 |
+
if ( false === $value ) {
|
401 |
+
continue;
|
402 |
+
}
|
403 |
if (
|
404 |
( ! $field['multiple'] && '' !== $value )
|
405 |
|| ( $field['multiple'] && array() !== $value )
|
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.
|
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.8
|
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 |
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.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.
|