From: Anthony Talarico Date: Thu, 27 Sep 2018 16:34:27 +0000 (-0400) Subject: fixing link urls for edit and list pages X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=4166c1377427c76b60f08c6d84f6b675eaa1ddac;p=WP-Plugins%2Fglm-member-db-events.git fixing link urls for edit and list pages --- diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 436f43a..2af6ae4 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -251,10 +251,11 @@ add_action( 'init', function(){ add_filter( GLM_MEMBERS_EVENTS_PLUGIN_SLUG .'-dashboard-widget', function ( $member = null ) { - $eventsIndexPage = GLM_MEMBERS_EVENTS_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-events-index&glm_action=edit'; - $eventsTable = GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "events"; - $eventsEditPage = GLM_MEMBERS_PLUGIN_ADMIN_MENU_URL_BASE.'events-index&glm_action=list&option=edit'; - $content = [ + $eventsIndexPage = GLM_MEMBERS_EVENTS_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-events-index&glm_action=edit'; + $eventsTable = GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "events"; + $eventsEditPage = GLM_MEMBERS_PLUGIN_ADMIN_MENU_URL_BASE.'events-index&glm_action=list&option=edit'; + $eventsListPage = GLM_MEMBERS_EVENTS_PLUGIN_ADMIN_URL . '?page=glm-members-admin-menu-events-list'; + $content = [ 'title' => 'Events', 'components' => [ [ @@ -311,7 +312,7 @@ add_filter( 'order' => 4, 'template' => 'dateSearch', 'entityID' => 'event', - 'resultUrl' => $eventsEditPage, + 'resultUrl' => $eventsListPage, ], [ 'id' => 'pending',