Problem with relevanssi_do_not_index filter
-
This code works fine:
function myfunc_relevanssi_do_not_index($index, $post_id) { return false; } add_filter('relevanssi_do_not_index', 'myfunc_relevanssi_do_not_index', 10, 2);
This code:
function myfunc_relevanssi_do_not_index($index, $post_id) { return true; } add_filter('relevanssi_do_not_index', 'myfunc_relevanssi_do_not_index', 10, 2);
Produces this:
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1 for query DELETE FROM wp_relevanssi WHERE doc= made by media_handle_upload, wp_insert_attachment, wp_insert_post, do_action(‘add_attachment’), call_user_func_array, relevanssi_publish, relevanssi_index_doc, relevanssi_remove_doc
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem with relevanssi_do_not_index filter’ is closed to new replies.