Skip to content

Commit

Permalink
Fixed memory issue when using the crp shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Jun 3, 2024
1 parent 9d8d774 commit 9de35b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contextual-related-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Plugin Name: Contextual Related Posts
* Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
* Description: Display related posts on your website or in your feed. Increase reader retention and reduce bounce rates
* Version: 3.5.0
* Version: 3.5.1
* Author: WebberZone
* Author URI: https://webberzone.com
* License: GPL-2.0+
Expand Down
2 changes: 1 addition & 1 deletion includes/frontend/class-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public static function get_the_excerpt( $post, $excerpt_length = 0, $use_excerpt
$content = $post->post_content;
}

$output = do_shortcode( $content );
$output = strip_shortcodes( $content );
$output = wp_strip_all_tags( $output, true );

if ( $strip_stopwords ) {
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,15 @@ If you enable thumbnails, the plugin will try to find the correct thumbnail in t

== Changelog ==

= 3.5.0 =
= 3.5.1 =

Release post: [https://webberzone.com/announcements/contextual-related-posts-v3-5-0/](https://webberzone.com/announcements/contextual-related-posts-v3-5-0/)

* Bug fix:
* Fixed memory issue when using the crp shortcode

= 3.5.0 =

Complete code rewrite using OOP, namespacing and autoloading. This will make it easier to maintain and extend the plugin in the future.

* Features:
Expand Down

0 comments on commit 9de35b7

Please sign in to comment.