From f4d50361f971845b9e854f1c15adbcdd1de50d7b Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 21 Mar 2017 09:55:05 -0400 Subject: [PATCH] Rename the ajax actions. renaming the actions so they're more unique. --- models/admin/ajax/{dropdown.php => scheduleDropdown.php} | 2 +- models/admin/ajax/{offcanvas.php => scheduleOffcanvas.php} | 2 +- setup/validActions.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename models/admin/ajax/{dropdown.php => scheduleDropdown.php} (97%) rename models/admin/ajax/{offcanvas.php => scheduleOffcanvas.php} (97%) diff --git a/models/admin/ajax/dropdown.php b/models/admin/ajax/scheduleDropdown.php similarity index 97% rename from models/admin/ajax/dropdown.php rename to models/admin/ajax/scheduleDropdown.php index f63e82b..9d1c36e 100644 --- a/models/admin/ajax/dropdown.php +++ b/models/admin/ajax/scheduleDropdown.php @@ -37,7 +37,7 @@ * an AJAX call that goes through the WorPress AJAX Handler. * */ -class GlmMembersAdmin_ajax_dropdown +class GlmMembersAdmin_ajax_scheduleDropdown { /** diff --git a/models/admin/ajax/offcanvas.php b/models/admin/ajax/scheduleOffcanvas.php similarity index 97% rename from models/admin/ajax/offcanvas.php rename to models/admin/ajax/scheduleOffcanvas.php index 277f8cd..78e3ee1 100644 --- a/models/admin/ajax/offcanvas.php +++ b/models/admin/ajax/scheduleOffcanvas.php @@ -37,7 +37,7 @@ * an AJAX call that goes through the WorPress AJAX Handler. * */ -class GlmMembersAdmin_ajax_offcanvas +class GlmMembersAdmin_ajax_scheduleOffcanvas { /** diff --git a/setup/validActions.php b/setup/validActions.php index dd7ba87..be73b51 100644 --- a/setup/validActions.php +++ b/setup/validActions.php @@ -61,8 +61,8 @@ $glmMembersApisAddOnValidActions = array( 'adminActions' => array( 'ajax' => array( 'schedule' => GLM_MEMBERS_APIS_PLUGIN_SLUG, - 'dropdown' => GLM_MEMBERS_APIS_PLUGIN_SLUG, - 'offcanvas' => GLM_MEMBERS_APIS_PLUGIN_SLUG, + 'scheduleDropdown' => GLM_MEMBERS_APIS_PLUGIN_SLUG, + 'scheduleOffcanvas' => GLM_MEMBERS_APIS_PLUGIN_SLUG, ), 'management' => array( 'apis' => GLM_MEMBERS_APIS_PLUGIN_SLUG, -- 2.17.1