remove old shortcode code

This commit is contained in:
Matthias Pfefferle 2023-01-23 23:51:27 +01:00
parent bd8906638f
commit 281ed2a8c2

View file

@ -235,9 +235,6 @@ class Post {
$post = $this->post; $post = $this->post;
$content = $this->get_post_content_template(); $content = $this->get_post_content_template();
// Register the shortcodes.
$shortcodes = new \Activitypub\Shortcodes( $post );
// Fill in the shortcodes. // Fill in the shortcodes.
setup_postdata( $post ); setup_postdata( $post );
$content = do_shortcode( $content ); $content = do_shortcode( $content );