Meta Box - Version 4.15.9

Version Description

Download this release

Release Info

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

Code changes from version 4.15.8 to 4.15.9

Files changed (4) hide show
  1. inc/loader.php +1 -1
  2. js/wysiwyg.js +4 -2
  3. meta-box.php +1 -1
  4. 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.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.15.9' );
22
 
23
  list( $path, $url ) = self::get_path( dirname( dirname( __FILE__ ) ) );
24
 
js/wysiwyg.js CHANGED
@@ -95,11 +95,13 @@ jQuery( function ( $ ) {
95
  * https://github.com/WordPress/gutenberg/issues/7176
96
  */
97
  function ensureSave() {
98
- if ( ! wp.data || ! window.tinyMCE ) {
99
  return;
100
  }
101
  wp.data.subscribe( function() {
102
- if ( wp.data.select( 'core/editor' ).isSavingPost() ) {
 
 
103
  window.tinyMCE.triggerSave();
104
  }
105
  } );
95
  * https://github.com/WordPress/gutenberg/issues/7176
96
  */
97
  function ensureSave() {
98
+ if ( ! wp.data || ! wp.data.hasOwnProperty( 'subscribe' ) || ! window.tinyMCE ) {
99
  return;
100
  }
101
  wp.data.subscribe( function() {
102
+ var editor = wp.data.hasOwnProperty( 'select' ) ? wp.data.select( 'core/editor' ) : {};
103
+
104
+ if ( editor && editor.isSavingPost && editor.isSavingPost() ) {
105
  window.tinyMCE.triggerSave();
106
  }
107
  } );
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.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.15.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: 5.0
7
- Stable tag: 4.15.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: 5.0
7
+ Stable tag: 4.15.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.