Releases: devgeniem/dustpress
Image helper documentation
Merge pull request #24 from ironland/image-helper Add readme for image helper
Added image helper.
Merge pull request #22 from ironland/image-helper Add image helper to the core
DustPress 1.5.5 - Model property changes
This release changes the "allowed_functions" property to "api" in DustPress models. Support for deprecated models was added to prevent breaking older code.
If you are still using the deprecated attribute in your models, the following error message will be printed into your PHP error log:
DustPress: Model property "allowed_functions" is deprecated, use "api" instead.
Fix this by changing the $allowed_functions
array attribute in all your models to $api
.
Moved DustPress execution from shutdown hook to earlier to both help debugging and fix some plugin compatibility issues
DustPress autoload is no longer run if WordPress wouldn't load any template anyway. This should reduce the errors with 3rd party plugins that execute their code outside WordPress templating system.
Improved strtotime helper
Merge pull request #17 from devgeniem/zArubaru-patch-1 Changed strtodate helper to use date_i18n function instead of just the normal date.
Contains helper accepts objects
The Contains helper can now handle both arrays and objects.
contains
is a conditional helper. It can be used to determine if an array/object contains a wanted item, so it works like PHP's in_array. It can also have an else condition.
Example:
{@contains key=haystack value="needle"}
Found it! :)
{:else}
Didn't find it. :(
{/contains}
Pass DustPress.js data as JSON for Debugger
This release changes the way DustPress returns data for DustPress Debugger when returning data from a DustPress.js ajax call. Now the automatically HTML rendered data will be passed as JSON back to the client to be displayed and debugged in the Debugger.
rename_model
The biggest change in this version update is that you can now use $this->rename_model('NewName')
in your models. It changes the name of the main data block in the data tree so template changing becomes easier.
Release notes
- Added a file extension check (.php) for helper file loading in the DustPress core.
get_acf_posts
now loads attachment images automatically.- Fixed a warning thrown by the ACF Flexible Content data filter.
Caching improved and explained
DustPress caching features are now documented in the README.