v2.0.0
Enhancements:
- (Breaking change) Updated Handlebars and Typeahead to enqueue by default, since those were incorrectly set to not enqueue out of the box. To do this, the existing Typeahead/Handlebars enqueue options have been completely removed and replaced with new options. You'll need to adjust these settings again if you depend on these scripts not being enqueued.
- (Breaking change) Renamed Handlebars/Typeahead script handles for consistency with our other plugins
- Implemented late JS enqueueing, so that only pages that utilize the
[ucf-faq-search]shortcode will load dependent JS files - Renamed
ucf-faq-script.min.jstoucf-faq-search.min.jsfor clarity - Split out existing
CommonandShortcodeclasses into their own separate files - Added a display function for FAQ searches for consistency with other shortcodes
- Upgraded packages; added Github issue/PR templates and CONTRIBUTING doc
Bug fixes:
- Fixed issue with the
handlebars_handleoption being formatted as a boolean instead ofenqueue_handlebars - Fixed
option_{$option_name}hook to actually work + use the correct option name - Added
default_option_{$option_name}hook to ensure defaults values get returned byget_option()when a unique default param isn't passed in