All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Some optimizations for DustPress ajax calls to make them faster and less error-prone.
- Core files do not override theme files anymore.
- A bug where core partials where unusable in some cases.
- A bug which prevented partials in theme from overriding core partials.
- A possibility to give Comparison helpers
type
parameter to use it with booleans as is the case with the original Dust.js.
- A bug where PHP warnings would occur when trying to call custom AJAX route that does not exist. Enhanced error messages as well.
- Template file locations are now searched only once and stored in cache to improve performance.
- Moved add_rewrite_tag calls to init hook.
- Ability to register custom routes.
- The Pagination helper now adds its data into the debugger.
- Code style fixes for the Pagination helper.
- Menu location to the menu helper data.
- Filters for menu object and menu items by the menu location.
- Documentation for Model class.
- A
set_args()
method for Model to make it possible to set arguments for an already instantiated model dynamically.
- A bug where renaming a model to a name it already had would throw an error.
- A bug where sending an array as a JSON POST payload to a DustPress site would cause an error.
- By giving the AJAX request a
data
parameter, it now returns the resulting data with the rendered partial. DustPress.js 2.1.0 is required for the front-end side.
- The
get_post
andget_posts
methods in theQuery
class now get the keyimage_id
containing the the featured image id if it is found.
- The
Pagination
helper allows changing the amount of pages displayed with the newneighbours
parameter. - Corrected documentation for
Query
classes recursive post querying functionality.
- Fixed a Notice from
is_cacheable_function
method when$ttl
is not set in some model
- Changed the default functionality for the render cacheing to be true
- Fixed not properly recognizing tidy & render arguments on older DustPress.js calls
- Model and partial containing the basic functionality of the default wp-activate.php file.
- Modifiied core so that when wp-activate.php is loaded the execution is stopped and DustPress creates its own instance.
- Optimized file loading routines to reduce loading times
- Support for new DustPress.js version