You've already forked wp-fedistream
fix: Complete memory leak fix for shortcode context handling
All checks were successful
Create Release Package / build-release (push) Successful in 58s
All checks were successful
Create Release Package / build-release (push) Successful in 58s
- Changed shortcode context from boolean to depth counter for nested shortcodes - Added shortcode context protection to template-wrapper.php for single page views - Fixes remaining recursion path in single FediStream post views Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
use WP_FediStream\Plugin;
|
||||
use WP_FediStream\Frontend\TemplateLoader;
|
||||
|
||||
// Enter shortcode context to prevent recursive shortcode processing in post content.
|
||||
TemplateLoader::enter_shortcode_context();
|
||||
|
||||
// Get template context.
|
||||
$context = TemplateLoader::get_context();
|
||||
|
||||
@@ -75,4 +78,7 @@ get_header();
|
||||
</main>
|
||||
|
||||
<?php
|
||||
// Exit shortcode context.
|
||||
TemplateLoader::exit_shortcode_context();
|
||||
|
||||
get_footer();
|
||||
|
||||
Reference in New Issue
Block a user