Small change request to excerpt-highlights.php
-
Hi Mikko,
Great plug in, thanks! I was hoping you could incorporate a small change to line 77 of the excerpts-highlights.php file to enable highlighted words to still be highlighted after an ajax sort. So if we change this line here:
$highlight = get_option('relevanssi_highlight'); if ("none" != $highlight) { --> if (!is_admin()) { $query = relevanssi_add_synonyms($query); $excerpt = relevanssi_highlight_terms($excerpt, $query); } }
to:
$highlight = get_option('relevanssi_highlight'); if ("none" != $highlight) { --> if ( !is_admin() || ( defined( 'DOING_AJAX' ) || DOING_AJAX ) ) { $query = relevanssi_add_synonyms($query); $excerpt = relevanssi_highlight_terms($excerpt, $query); } }
everything still works.
Thanks very much!
Johnny P
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Small change request to excerpt-highlights.php’ is closed to new replies.