From a55dc903794d13d5cb2b59928b651259c02784f3 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 23 Jan 2023 21:13:50 +0100 Subject: [PATCH] fix length --- includes/class-shortcodes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/class-shortcodes.php b/includes/class-shortcodes.php index ea803f8..b7243d5 100644 --- a/includes/class-shortcodes.php +++ b/includes/class-shortcodes.php @@ -92,10 +92,10 @@ class Shortcodes { $tag ); - $length = intval( $atts['length'] ); + $excerpt_length = intval( $atts['length'] ); - if ( 0 === $length ) { - $length = ACTIVITYPUB_EXCERPT_LENGTH; + if ( 0 === $excerpt_length ) { + $excerpt_length = ACTIVITYPUB_EXCERPT_LENGTH; } $excerpt = \get_post_field( 'post_excerpt', $post );