Skip to content

v2.0.0

Choose a tag to compare

@cjg89 cjg89 released this 08 Feb 14:52
· 43 commits to master since this release

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.js to ucf-faq-search.min.js for clarity
  • Split out existing Common and Shortcode classes 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_handle option being formatted as a boolean instead of enqueue_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 by get_option() when a unique default param isn't passed in