Bug (fix provided) for comment cache purge
-
I get a fatal error when trying to delete a comment programatically. You have a block of code in one function that just needs to be added to another one as well. This is the fix:
Update inc/cache/purge-cache.php, line 103 (in purge_post_on_comment_status_change function)
Current/broken code:
WP_Filesystem();
Fixed version:
global $wp_filesystem; if ( empty( $wp_filesystem ) ) { require_once( ABSPATH . '/wp-admin/includes/file.php' ); WP_Filesystem(); }
The fixed version comes directly from your code in the function above it (purge_post_on_new_comment function)
Please include this fix in the next update, this is causing fatal errors on my sites
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Bug (fix provided) for comment cache purge’ is closed to new replies.