From: Chuck Scott Date: Fri, 9 Sep 2016 20:28:42 +0000 (-0400) Subject: Cleaned up adminHooks.php formatting. X-Git-Tag: v2.5.6^2~5 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e79eb872694ded9cc0741e89ab23ff243d4ef247;p=WP-Plugins%2Fglm-member-db.git Cleaned up adminHooks.php formatting. Removed include/require parens. --- diff --git a/models/admin/ajax/imageUpload.php b/models/admin/ajax/imageUpload.php index e0d36f91..55c76a74 100644 --- a/models/admin/ajax/imageUpload.php +++ b/models/admin/ajax/imageUpload.php @@ -14,7 +14,7 @@ */ // Load Members data abstract -require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php'); +require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php'; /* * This class performs the work of handling images passed to it via diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 0076fe75..488db8a7 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -46,6 +46,7 @@ add_filter('glm-member-db-admin-management-hooksHelp', function($content) { $menuName = "Members Only Menu"; $menuSlug = "members-only-menu"; + // Does the menu exist already? register_nav_menu($menuSlug, $menuName); @@ -85,7 +86,6 @@ if(!empty($locations)) set_theme_mod('nav_menu_locations', $locations); } - add_action( 'add_meta_boxes', function() { function custom_js_css() { wp_enqueue_script('your-meta-box', GLM_MEMBERS_PLUGIN_URL. '/js/shortcodeBuilder.js', array('jquery'), null, true); @@ -101,28 +101,6 @@ add_action( 'add_meta_boxes', function() { ); } ); -// This function below needs to be defined in the theme's functions.php -// -//if ( ! function_exists( 'glm_members_only_menu' ) && class_exists('GLM_Members_Only_Walker')) { -// function glm_members_only_menu() { -// wp_nav_menu(array( -// 'container' => false, // remove nav container -// 'container_class' => 'members-only-menu', // class of container -// 'menu' => '', // menu name -// 'menu_class' => 'members-only-menu', // adding custom nav class -// 'theme_location' => 'members-only-menu', // where it's located in the theme -// 'before' => '', // before each link -// 'after' => '', // after each link -// 'link_before' => '', // before each link text -// 'link_after' => '', // after each link text -// 'depth' => 2, // limit the depth of the nav -// 'fallback_cb' => false, // fallback function (see below) -// 'walker' => new GLM_Members_Only_Walker() -// )); -// } -//} - - // If not administrator, don't show or permit access to the main dashboard function glmRemoveDashboard () { global $current_user, $menu, $submenu;