diff -r 346c88efed21 -r 5e2f62d02dcd wp/wp-content/plugins/option-tree/includes/ot-meta-box-api.php --- a/wp/wp-content/plugins/option-tree/includes/ot-meta-box-api.php Mon Jun 08 16:11:51 2015 +0000 +++ b/wp/wp-content/plugins/option-tree/includes/ot-meta-box-api.php Tue Jun 09 03:35:32 2015 +0200 @@ -30,13 +30,21 @@ function __construct( $meta_box ) { if ( ! is_admin() ) return; - + + global $ot_meta_boxes; + + if ( ! isset( $ot_meta_boxes ) ) { + $ot_meta_boxes = array(); + } + + $ot_meta_boxes[] = $meta_box; + $this->meta_box = $meta_box; - + add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) ); - + add_action( 'save_post', array( $this, 'save_meta_box' ), 1, 2 ); - + } /** @@ -64,9 +72,9 @@ * @since 1.0 */ function build_meta_box( $post, $metabox ) { - + echo '