From 3c65d023c19b40dbb05d6abe0f67cfeb0c15414a Mon Sep 17 00:00:00 2001 From: davemess34 Date: Tue, 15 Sep 2015 09:47:14 -0400 Subject: [PATCH 1/2] added homepage API default --- wp/wp-content/plugins/TcApi-hookup/includes/public.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp/wp-content/plugins/TcApi-hookup/includes/public.php b/wp/wp-content/plugins/TcApi-hookup/includes/public.php index 915876a4..b591d185 100644 --- a/wp/wp-content/plugins/TcApi-hookup/includes/public.php +++ b/wp/wp-content/plugins/TcApi-hookup/includes/public.php @@ -402,7 +402,7 @@ function tcapi_get_activitySummary($atts, $key = "") { $response = wp_remote_get($url, $args); if (is_wp_error($response) || !isset ( $response ['body'] )) { - return $key == "memberCount" ? "675,000+" : "Error in processing"; + return $key == "memberCount" ? "860,000+" : "Error in processing"; } if ($response ['response'] ['code'] == 200) { $activity = json_decode($response ['body']); @@ -412,7 +412,7 @@ function tcapi_get_activitySummary($atts, $key = "") { } return $activity; } - return $key == "memberCount" ? "675,000+" : "Error in processing request"; + return $key == "memberCount" ? "860,000+" : "Error in processing request"; } @@ -558,7 +558,7 @@ function tcapi_get_track_statistics($atts, $key = "") { } $response = wp_remote_get($url, $args); - + if (is_wp_error($response) || !isset ( $response ['body'] )) { return "Error in processing"; } From 07c615e696078a315fe7428a918dcb6a15fb77cc Mon Sep 17 00:00:00 2001 From: davemess34 Date: Tue, 15 Sep 2015 09:58:52 -0400 Subject: [PATCH 2/2] added homepage API default --- wp/wp-content/plugins/TcApi-hookup/includes/public.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp/wp-content/plugins/TcApi-hookup/includes/public.php b/wp/wp-content/plugins/TcApi-hookup/includes/public.php index b591d185..a0157ebc 100644 --- a/wp/wp-content/plugins/TcApi-hookup/includes/public.php +++ b/wp/wp-content/plugins/TcApi-hookup/includes/public.php @@ -402,7 +402,7 @@ function tcapi_get_activitySummary($atts, $key = "") { $response = wp_remote_get($url, $args); if (is_wp_error($response) || !isset ( $response ['body'] )) { - return $key == "memberCount" ? "860,000+" : "Error in processing"; + return $key == "memberCount" ? "860,000+" : "$30,000+"; } if ($response ['response'] ['code'] == 200) { $activity = json_decode($response ['body']); @@ -412,7 +412,7 @@ function tcapi_get_activitySummary($atts, $key = "") { } return $activity; } - return $key == "memberCount" ? "860,000+" : "Error in processing request"; + return $key == "memberCount" ? "860,000+" : "$30,000+"; }