mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-13 03:36:43 +09:00
Merge branch 'master' into feature/responsive-table
This commit is contained in:
@@ -60,7 +60,7 @@ class WPStrava_RouteShortcode {
|
||||
/* Make sure boolean values are actually boolean
|
||||
* @see https://wordpress.stackexchange.com/a/119299
|
||||
*/
|
||||
$atts['markers'] = filter_var( $atts['markers'], FILTER_VALIDATE_BOOLEAN );
|
||||
$atts['markers'] = filter_var( $atts['markers'], FILTER_VALIDATE_BOOLEAN );
|
||||
|
||||
$strava_som = WPStrava_SOM::get_som( $atts['som'] );
|
||||
$route = WPStrava::get_instance()->routes;
|
||||
@@ -68,7 +68,7 @@ class WPStrava_RouteShortcode {
|
||||
|
||||
try {
|
||||
$route_details = $route->get_route( $atts['id'] );
|
||||
} catch( WPStrava_Exception $e ) {
|
||||
} catch ( WPStrava_Exception $e ) {
|
||||
return $e->to_html();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user