mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-15 12:43:41 +09:00
Added image_only flag to [activity] shortcode
This commit is contained in:
@@ -55,7 +55,12 @@ class WPStrava_RouteShortcode {
|
||||
'markers' => false,
|
||||
);
|
||||
|
||||
$atts = shortcode_atts( $defaults, $atts );
|
||||
$atts = shortcode_atts( $defaults, $atts, 'route' );
|
||||
|
||||
/* Make sure boolean values are actually boolean
|
||||
* @see https://wordpress.stackexchange.com/a/119299
|
||||
*/
|
||||
$atts['markers'] = filter_var( $atts['markers'], FILTER_VALIDATE_BOOLEAN );
|
||||
|
||||
$strava_som = WPStrava_SOM::get_som( $atts['som'] );
|
||||
$route = WPStrava::get_instance()->routes;
|
||||
|
||||
Reference in New Issue
Block a user