diff --git a/includes/micropub/class-synprovider-micropub.php b/includes/micropub/class-synprovider-micropub.php index b75cd0e..bd453e5 100644 --- a/includes/micropub/class-synprovider-micropub.php +++ b/includes/micropub/class-synprovider-micropub.php @@ -120,10 +120,10 @@ public function get_content( $post ) { $content = syn_get_post_content( $post ); $length = strlen( $content ); $backlink = get_option( 'syndication_backlink' ); - $link = wp_get_shortlink( $post ); - $link = sprintf( '%1s', $link ); + $shortlink = wp_get_shortlink( $post ); + $link = '' . $shortlink . ''; if ( true !== $backlink ) { - $content = syn_excerpt( $content, ( $this->content_length - 3 ) - strlen( $link ) ); + $content = syn_excerpt( $content, ( $this->content_length - 3 ) - strlen( $shortlink ) ); } if ( ! empty( $post->post_excerpt ) && 1 === get_option( 'syndication_use_excerpt' ) ) { $content = $post->post_excerpt;