Skip to content

Commit a55dc90

Browse files
committed
fix length
1 parent 718bd78 commit a55dc90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

includes/class-shortcodes.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ public static function excerpt( $atts, $content, $tag ) {
9292
$tag
9393
);
9494

95-
$length = intval( $atts['length'] );
95+
$excerpt_length = intval( $atts['length'] );
9696

97-
if ( 0 === $length ) {
98-
$length = ACTIVITYPUB_EXCERPT_LENGTH;
97+
if ( 0 === $excerpt_length ) {
98+
$excerpt_length = ACTIVITYPUB_EXCERPT_LENGTH;
9999
}
100100

101101
$excerpt = \get_post_field( 'post_excerpt', $post );

0 commit comments

Comments
 (0)