fix length

This commit is contained in:
Matthias Pfefferle 2023-01-23 21:13:50 +01:00
parent 718bd78cf4
commit a55dc90379

View file

@ -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 );