From: Chuck Scott Date: Fri, 9 Sep 2016 20:33:21 +0000 (-0400) Subject: Cleaned up include/require parens. X-Git-Tag: v1.2.1^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=47db79f2713e60fce5b15674dc539a7476d1ebe4;p=WP-Plugins%2Fglm-member-db-search.git Cleaned up include/require parens. --- diff --git a/activate.php b/activate.php index cd69856..1c1e4cb 100644 --- a/activate.php +++ b/activate.php @@ -71,7 +71,7 @@ class glmMembersSearchPluginActivate update_option('glmMembersDatabaseSearchPluginVersion', GLM_MEMBERS_SEARCH_PLUGIN_VERSION); // Set Roles and Capabilities for this plugin - require_once(GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php'); + require_once GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php'; } /* diff --git a/index.php b/index.php index 9530bba..f848274 100644 --- a/index.php +++ b/index.php @@ -78,13 +78,13 @@ if (!defined('ABSPATH')) { $startupNotices = ''; // Get standard defined parameters -require_once('defines.php'); +require_once 'defines.php'; // Required to be able to get user capabilities when being called as a filter from the main plugin -require_once(ABSPATH . 'wp-includes/pluggable.php'); +require_once ABSPATH.'wp-includes/pluggable.php'; // Include defines to tell if a plugin is active -include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); +include_once ABSPATH.'wp-admin/includes/plugin.php'; /* * Do some preliminary sanity checks @@ -136,10 +136,10 @@ if (version_compare($glmMembersDatabasePluginVersion, GLM_MEMBERS_SEARCH_PLUGIN_ /* * Register this add-on with the main GLM Member DB plugin and get information on all add-ons loaded. */ -require_once(GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/validActions.php'); -require_once(GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/shortcodes.php'); +require_once GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/validActions.php'; +require_once GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/shortcodes.php'; if (is_file(GLM_MEMBERS_SEARCH_PLUGIN_DB_SCRIPTS.'/dbVersions.php')) { - require_once(GLM_MEMBERS_SEARCH_PLUGIN_DB_SCRIPTS.'/dbVersions.php'); + require_once GLM_MEMBERS_SEARCH_PLUGIN_DB_SCRIPTS.'/dbVersions.php'; } // Load Search Management Settings data @@ -190,7 +190,7 @@ add_filter('glm-member-db-register-addon','glmMembersRegisterSearch', 10, 1); function glmMembersSearchPluginActivate () { global $wpdb, $config; - require_once (GLM_MEMBERS_SEARCH_PLUGIN_PATH . '/activate.php'); + require_once GLM_MEMBERS_SEARCH_PLUGIN_PATH . '/activate.php'; new glmMembersSearchPluginActivate($wpdb, $config); } register_activation_hook(__FILE__, 'glmMembersSearchPluginActivate'); @@ -199,7 +199,7 @@ add_filter('glm-member-db-register-addon','glmMembersRegisterSearch', 10, 1); function glmMembersSearchPluginDeactivate () { global $wpdb, $config; - require_once (GLM_MEMBERS_SEARCH_PLUGIN_PATH . '/deactivate.php'); + require_once GLM_MEMBERS_SEARCH_PLUGIN_PATH . '/deactivate.php'; $x = new glmMembersSearchPluginDeactivate($wpdb, $config); return false; } @@ -208,5 +208,5 @@ add_filter('glm-member-db-register-addon','glmMembersRegisterSearch', 10, 1); /* * Hooks for testing capabilities provided by this add-on */ -require_once(GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/permissions.php'); +require_once GLM_MEMBERS_SEARCH_PLUGIN_SETUP_PATH.'/permissions.php'; diff --git a/models/admin/ajax/xmlSitemap.php b/models/admin/ajax/xmlSitemap.php index 09ea41f..e740c58 100644 --- a/models/admin/ajax/xmlSitemap.php +++ b/models/admin/ajax/xmlSitemap.php @@ -13,7 +13,7 @@ */ // Load GLM Search class -require_once(GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/glmSearch.php'); +require_once GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/glmSearch.php'; /* * This class uses the Gaslight Media Open Search Server to diff --git a/models/admin/management/search.php b/models/admin/management/search.php index 9e7f066..9ca7953 100644 --- a/models/admin/management/search.php +++ b/models/admin/management/search.php @@ -14,7 +14,7 @@ */ // Load Management Search data abstract -require_once(GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/data/dataManagement.php'); +require_once GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/data/dataManagement.php'; /** * GlmMembersAdmin_management_search diff --git a/models/front/search/index.php b/models/front/search/index.php index 259dab0..f64dbdb 100644 --- a/models/front/search/index.php +++ b/models/front/search/index.php @@ -13,7 +13,7 @@ */ // Load GLM Search class -require_once(GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/glmSearch.php'); +require_once GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/glmSearch.php'; /* * Perform searches using the Gaslight Media Open Search Server diff --git a/models/front/search/sitemap.php b/models/front/search/sitemap.php index 34c3506..3732853 100644 --- a/models/front/search/sitemap.php +++ b/models/front/search/sitemap.php @@ -13,7 +13,7 @@ */ // Load GLM Search class -require_once(GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/glmSearch.php'); +require_once GLM_MEMBERS_SEARCH_PLUGIN_CLASS_PATH.'/glmSearch.php'; /* * Perform searches using the Gaslight Media Open Search Server