mirror of
https://github.com/10h30/genesis-simple-sidebars.git
synced 2026-07-11 18:46:05 +09:00
Updated to simplify admin load
added a class exist check before requiring the admin.php file to ensure that the class will exist and removed the genesis_admin_menu hook to simplify issues when working with the global admin class object.
This commit is contained in:
+3
-1
@@ -75,7 +75,9 @@ function ss_genesis_init() {
|
||||
return;
|
||||
|
||||
//* Include admin files
|
||||
require_once( SS_PLUGIN_DIR . '/includes/admin.php' );
|
||||
if( class_exists( 'Genesis_Admin_Boxes' ) ) {
|
||||
require_once( SS_PLUGIN_DIR . '/includes/admin.php' );
|
||||
}
|
||||
require_once( SS_PLUGIN_DIR . '/includes/inpost.php' );
|
||||
require_once( SS_PLUGIN_DIR . '/includes/term.php' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user