From 7d2fddaed985ba187c677d72102d1590af11f606 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Mon, 7 Oct 2024 20:13:09 +0200 Subject: [PATCH] More doc comments --- includes/functions/_setup-shortcodes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/functions/_setup-shortcodes.php b/includes/functions/_setup-shortcodes.php index a51f5404..f6175d92 100644 --- a/includes/functions/_setup-shortcodes.php +++ b/includes/functions/_setup-shortcodes.php @@ -229,11 +229,12 @@ function fictioneer_get_default_shortcode_args( $attr, $def_count = -1 ) { } else { $splide = json_decode( $args['splide'], true ); - // Turn arrows are off by default + // Turn arrows off by default if ( ! preg_match( '/"arrows"\s*:\s*true/', $args['splide'] ) ) { $splide['arrows'] = false; } + // Change default arrow SVG path if ( ! isset( $splide['arrowPath'] ) ) { $splide['arrowPath'] = 'M31.89 18.24c0.98 0.98 0.98 2.56 0 3.54l-15 15c-0.98 0.98-2.56 0.98-3.54 0s-0.98-2.56 0-3.54L26.45 20 13.23 6.76c-0.98-0.98-0.98-2.56 0-3.54s2.56-0.98 3.54 0l15 15'; }