Title: Highlight type setting bug
Last modified: November 28, 2018

---

# Highlight type setting bug

 *  Resolved [Artem P.](https://wordpress.org/support/users/madeinua/)
 * (@madeinua)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/highlight-type-setting-bug/)
 * Hi there,
 * found bug in Excerpts and highlights > Highlight type. Changed select box always
   displaying the first option (No highlighting) after saving.
 * Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhighlight-type-setting-bug%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/highlight-type-setting-bug/#post-10928588)
 * Sorry, but I can’t reproduce this on my site. The setting can be saved correctly.
   Are you using the latest version of Relevanssi? Can you save other settings?
 *  Thread Starter [Artem P.](https://wordpress.org/support/users/madeinua/)
 * (@madeinua)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/highlight-type-setting-bug/#post-10929021)
 * Hello,
 * Relevanssi 4.1.1.2.
 * Wrong:
    `$highlight_style = relevanssi_select( $highlight, 'style' );`
 * Should be:
 * `$highlight_style = relevanssi_select( $highlight, 'css' );`
 *  Thread Starter [Artem P.](https://wordpress.org/support/users/madeinua/)
 * (@madeinua)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/highlight-type-setting-bug/#post-10929025)
 * Same here:
 * `if ( 'style' === $highlight ) {`
 * should be
 * `if ( 'css' === $highlight ) {`
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/highlight-type-setting-bug/#post-10929674)
 * Indeed. Will fix this in the next version, thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Highlight type setting bug’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

## Tags

 * [setting](https://wordpress.org/support/topic-tag/setting/)

 * 4 replies
 * 2 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/highlight-type-setting-bug/#post-10929674)
 * Status: resolved