v2.0.7
Enhancements
- Added late enqueuing of JS assets, and moved all scripts to the document footer.
ucf_post_list_search_script()has been modified to return empty contents and add inline initialization of typeaheads viawp_add_inline_script()instead of returning a<script>tag directly. - Renamed Typeahead and Handlebars script handles for consistency with other plugins
- Added constants for static CSS/JS URL paths
- Removed redundant
has_filter()checks when displaying post list layouts - Added absolute dirs for required files in main plugin file
- Removed ID attr on
.ucf-post-search-formwrapper elem, as it's not necessary - Upgraded packages
- Added plugin version cache-busting to plugin CSS and JS (excluding CDN'd assets)
Bug fixes
- Updated
UCF_Post_List_Config::format_option_num_or_null()to actually cast non-null values tointinstead of trying to force addition on a potentially non-numeric value