use class check to prevent collisions
This commit is contained in:
@ -11,7 +11,9 @@ require_once dirname( __FILE__ ) . '/inc/api.php';
|
|||||||
|
|
||||||
if ( is_admin() ){
|
if ( is_admin() ){
|
||||||
require_once dirname( __FILE__ ) . '/inc/options.inc.php';
|
require_once dirname( __FILE__ ) . '/inc/options.inc.php';
|
||||||
require_once dirname( __FILE__ ) . '/lib/jw_simple_options/simple_options.php';
|
if( ! class_exists( 'JW_SIMPLE_OPTIONS' ) ){
|
||||||
|
require_once dirname( __FILE__ ) . '/lib/jw_simple_options/simple_options.php';
|
||||||
|
}
|
||||||
require_once dirname( __FILE__ ) . '/class/admin.class.php';
|
require_once dirname( __FILE__ ) . '/class/admin.class.php';
|
||||||
|
|
||||||
$cwv3_options = new JW_SIMPLE_OPTIONS( $cwv3_op_data );
|
$cwv3_options = new JW_SIMPLE_OPTIONS( $cwv3_op_data );
|
||||||
|
Reference in New Issue
Block a user