Version Description
Download this release
Release Info
Developer | rilwis |
Plugin | Meta Box |
Version | 4.15.4 |
Comparing to | |
See all releases |
Code changes from version 4.15.3 to 4.15.4
- inc/loader.php +1 -1
- inc/sanitizer.php +3 -3
- meta-box.php +1 -1
- readme.txt +1 -1
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.15.
|
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.15.4' );
|
22 |
|
23 |
list( $path, $url ) = self::get_path( dirname( dirname( __FILE__ ) ) );
|
24 |
|
inc/sanitizer.php
CHANGED
@@ -34,7 +34,7 @@ class RWMB_Sanitizer {
|
|
34 |
// Custom callback.
|
35 |
$types = array_diff( get_class_methods( __CLASS__ ), array( 'init' ) );
|
36 |
foreach ( $types as $type ) {
|
37 |
-
add_filter( "rwmb_{$type}_sanitize", array( $this, $type ) );
|
38 |
}
|
39 |
}
|
40 |
|
@@ -46,7 +46,7 @@ class RWMB_Sanitizer {
|
|
46 |
* @param string $value Checkbox value.
|
47 |
* @return int
|
48 |
*/
|
49 |
-
public function
|
50 |
return (int) ! empty( $value );
|
51 |
}
|
52 |
|
@@ -57,7 +57,7 @@ class RWMB_Sanitizer {
|
|
57 |
* @param string $value Switch value.
|
58 |
* @return int
|
59 |
*/
|
60 |
-
public function
|
61 |
return (int) ! empty( $value );
|
62 |
}
|
63 |
}
|
34 |
// Custom callback.
|
35 |
$types = array_diff( get_class_methods( __CLASS__ ), array( 'init' ) );
|
36 |
foreach ( $types as $type ) {
|
37 |
+
add_filter( "rwmb_{$type}_sanitize", array( $this, "sanitize_{$type}" ) );
|
38 |
}
|
39 |
}
|
40 |
|
46 |
* @param string $value Checkbox value.
|
47 |
* @return int
|
48 |
*/
|
49 |
+
public function sanitize_checkbox( $value ) {
|
50 |
return (int) ! empty( $value );
|
51 |
}
|
52 |
|
57 |
* @param string $value Switch value.
|
58 |
* @return int
|
59 |
*/
|
60 |
+
public function sanitize_switch( $value ) {
|
61 |
return (int) ! empty( $value );
|
62 |
}
|
63 |
}
|
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.15.
|
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.15.4
|
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.8
|
7 |
-
Stable tag: 4.15.
|
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.8
|
7 |
+
Stable tag: 4.15.4
|
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.
|