Bug when posts are inserted from front end with Relevanssi active
-
Hi
Love your plugin!
I’ve just found a small bug which you might want to correct. When a function on the front end tries to use the WP function to insert a post, Relevanssi tries to index it – but in the process it calls the is_plugin_active() function of WordPress (on line 733 in relevanssi/lib/indexing.php).
Because is_plugin_active() can only be called within the admin area, this results in a PHP fatal error.
The Codex suggests adding this when not in the admin, which will make the is_plugin_active() succeed:
<?php include_once( ABSPATH . ‘wp-admin/includes/plugin.php’ ); ?>Hope this helps! ??
Tim
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Bug when posts are inserted from front end with Relevanssi active’ is closed to new replies.