Skip to content

Commit

Permalink
Wrap URL in link HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Sep 28, 2024
1 parent 0a366b0 commit 09fd155
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/micropub/class-synprovider-micropub.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public function get_content( $post ) {
$length = strlen( $content );
$backlink = get_option( 'syndication_backlink' );
$link = wp_get_shortlink( $post );
$link = sprintf( '<a href="%1s">%1s</a>', $link );
if ( true !== $backlink ) {
$content = syn_excerpt( $content, ( $this->content_length - 3 ) - strlen( $link ) );
}
Expand Down

0 comments on commit 09fd155

Please sign in to comment.