fix length
This commit is contained in:
parent
718bd78cf4
commit
a55dc90379
1 changed files with 3 additions and 3 deletions
|
@ -92,10 +92,10 @@ class Shortcodes {
|
||||||
$tag
|
$tag
|
||||||
);
|
);
|
||||||
|
|
||||||
$length = intval( $atts['length'] );
|
$excerpt_length = intval( $atts['length'] );
|
||||||
|
|
||||||
if ( 0 === $length ) {
|
if ( 0 === $excerpt_length ) {
|
||||||
$length = ACTIVITYPUB_EXCERPT_LENGTH;
|
$excerpt_length = ACTIVITYPUB_EXCERPT_LENGTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
$excerpt = \get_post_field( 'post_excerpt', $post );
|
$excerpt = \get_post_field( 'post_excerpt', $post );
|
||||||
|
|
Loading…
Reference in a new issue