diff --git a/includes/wpalchemy/MetaBox.php b/includes/wpalchemy/MetaBox.php index 6c3caf7..ec5c39d 100644 --- a/includes/wpalchemy/MetaBox.php +++ b/includes/wpalchemy/MetaBox.php @@ -450,7 +450,7 @@ class WPAlchemy_MetaBox */ var $_loop_data; - function WPAlchemy_MetaBox($arr) + function __construct($arr) { $this->_loop_data = new stdClass; diff --git a/views/control/wpeditor.php b/views/control/wpeditor.php index 54273f0..7d85eda 100644 --- a/views/control/wpeditor.php +++ b/views/control/wpeditor.php @@ -6,7 +6,13 @@ if( has_filter('the_editor_content') ) $value = apply_filters('the_editor_content', $value); else - $value = wp_richedit_pre($value); + // 'wp_richedit_pre' is deprecated since version 4.3 + // use 'format_for_editor' when WP version is >= 4.3 + global $wp_version; + if ($wp_version < 4.3) + $value = wp_richedit_pre($value); + else + $value = format_for_editor($value); ?>