Bug with other Plugin Shortcodes
-
Relevanssi includes an option to expand shortcodes of other plugins in posts when searching. If this is enabled I have found a bug in version 3.1.3 and version 3.1.4 of Relevanssi (that may exist in earlier versions) that may result in the server timing out when such a shortcode results in a post being added, updated, or deleted. In such a case an infinite loop will occur which will result in hundreds of copies of the original post being added to the database.
The plugin I encountered this problem with is WP User Frontend (more about this problem and how I found this bug here).
On investigating I found that a bug fix was already somewhat implemented in Relevanssi via the wp_insert_post action hook in init.php which calls the relevanssi_insert_edit() function but the cause of the old bug hadn’t been disabled.
The fix for this bug is to comment out this line as follows in the Relevanssi file init.php
//add_action(‘save_post’, ‘relevanssi_edit’, 99, 1);
Cheers
The Professor
The topic ‘Bug with other Plugin Shortcodes’ is closed to new replies.