From: Steve Sutton Date: Wed, 21 Nov 2018 13:00:30 +0000 (-0500) Subject: Update page slug to id X-Git-Tag: v1.0.5^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=97e6ed62f03f69b30157f269e6b6deae58f115e1;p=WP-Plugins%2Fglm-member-db-apis.git Update page slug to id use page id as they keep changes the page slug --- diff --git a/models/front/apis/schedule.php b/models/front/apis/schedule.php index 40999d6..b0ad44b 100644 --- a/models/front/apis/schedule.php +++ b/models/front/apis/schedule.php @@ -95,7 +95,7 @@ class GlmMembersFront_apis_schedule 'content' => $content, 'inDropDown' => $inDropDown, 'offCanvas' => $offCanvas, - 'schedulePage' => get_home_url(null, '/' ) . $starlinePageSlug . '/', + 'schedulePage' => get_permalink( $starlinePageSlug ) , ); error_reporting(E_ALL ^ E_NOTICE); diff --git a/views/admin/management/apis.html b/views/admin/management/apis.html index 4dc748e..2592c47 100644 --- a/views/admin/management/apis.html +++ b/views/admin/management/apis.html @@ -31,7 +31,7 @@ - Page slug for the Schedule + Page ID for the Schedule