C:\xampp\htdocs\landing\wp-content\plugins\penci-framework\lib\mb-term-meta\mb-term-meta.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
// Prevent loading this file directly.
defined'ABSPATH' ) || exit;

if ( ! 
function_exists'mb_term_meta_load' ) ) {
    
/**
     * Hook to 'init' with priority 5 to make sure all actions are registered before Meta Box 4.9.0 runs
     */
    
add_action'init''mb_term_meta_load');

    
/**
     * Load plugin files after Meta Box is loaded
     */
    
function mb_term_meta_load() {
        if ( ! 
defined'RWMB_VER' ) || class_exists'MB_Term_Meta_Box' ) ) {
            return;
        }

        require 
dirname__FILE__ ) . '/inc/class-mb-term-meta-loader.php';
        require 
dirname__FILE__ ) . '/inc/class-mb-term-meta-box.php';
        require 
dirname__FILE__ ) . '/inc/class-rwmb-term-storage.php';

        
$loader = new MB_Term_Meta_Loader;
        
$loader->init();

        
// Backward compatible with Meta Box Group extension < 1.2.7 when Meta Box 1.12 switch to use storage.
        
$old_group false;
        if ( ! 
function_exists'is_plugin_active' ) ) {
            include_once( 
ABSPATH 'wp-admin/includes/plugin.php' );
        }
        if ( 
is_plugin_active'meta-box-group/meta-box-group.php' ) ) {
            
$group get_plugin_dataWP_PLUGIN_DIR '/meta-box-group/meta-box-group.php' );

            if ( 
version_compare$group['Version'], '1.2.7' ) < ) {
                
$old_group true;
            }
        }

        if ( 
$old_group ) {
            require 
dirname__FILE__ ) . '/inc/class-mb-term-meta-field.php';
            
$term_meta_field = new MB_Term_Meta_Field();
            
$term_meta_field->init();
        }
    }
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586