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:
Nick Croft
2014-06-20 09:59:55 -04:00
parent ff6077078d
commit 5300ec9601
2 changed files with 5 additions and 13 deletions
+3 -1
View File
@@ -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' );