• Resolved Thorworx

    (@thorworx-1)


    Hey John,

    You missed an instance of sanitizing the class.

    This was causing me trouble, because the unsanitized class name (with spaces and punctuation in it) was conflicting with my stylesheet. The word “current” was in the title of one of the FAQs, so my theme’s .current class was being applied to it. =/

    Line 158 of class-arconix-faq.php:
    $return .= '<div id="faq-' . get_the_id() . '" class="arconix-faq-accordion-title ' . get_the_title() . '">';

    Should be:
    $return .= '<div id="faq-' . get_the_id() . '" class="arconix-faq-accordion-title ' . sanitize_html_class( get_the_title() ) . '">';

    https://www.ads-software.com/plugins/arconix-faq/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘A little bug…’ is closed to new replies.