fix hashtags replacement

This commit is contained in:
Matthias Pfefferle 2020-12-17 18:24:30 +01:00
parent 48115bb252
commit 0fcc57ee04

View file

@ -227,7 +227,7 @@ class Post {
$content = \str_replace( '%content%', $this->get_the_post_content(), $content ); $content = \str_replace( '%content%', $this->get_the_post_content(), $content );
$content = \str_replace( '%permalink%', $this->get_the_post_link( 'permalink' ), $content ); $content = \str_replace( '%permalink%', $this->get_the_post_link( 'permalink' ), $content );
$content = \str_replace( '%shortlink%', $this->get_the_post_link( 'shortlink' ), $content ); $content = \str_replace( '%shortlink%', $this->get_the_post_link( 'shortlink' ), $content );
$content = \str_replace( '%tags%', $this->get_the_post_hashtags(), $content ); $content = \str_replace( '%hashtags%', $this->get_the_post_hashtags(), $content );
$content = \trim( \preg_replace( '/[\r\n]{2,}/', '', $content ) ); $content = \trim( \preg_replace( '/[\r\n]{2,}/', '', $content ) );