Skip to content

Releases: thefrosty/wp-utilities

Version 1.7.3

11 Nov 18:58
f2673f8
Compare
Choose a tag to compare

Fixed

  • Added $path parameter to getFileTime and change to pull from getPath which would be the absolute path to the file
    instead of the basename file, oops.

Version 1.7.2

11 Nov 15:54
44483c4
Compare
Choose a tag to compare

Changed

  • The addOnCondition has a breaking change adding a new parameter after the callback, allowing an array
    of args to be passed to the callback. If empty call_user_function is used, else call_user_func_array is used.

Updated

  • addOnCondition is also using the new classImplementsWpHooks condition function before adding the hook to avoid
    possible errors when passing in the class string.
  • Bash formatting cleanup on bin/ directory shell linters.

Version 1.7.1

07 Nov 20:02
5df1b43
Compare
Choose a tag to compare

Added

  • Add getFileTime to PluginInterface which allows asset version attributes on modified file time over version constraints.
    Use $plugin->getFileTime() or a date formatted string \date(\DateTime::::ISO8601, $plugin->getFileTime().
  • Add addIfCondition to PluginInterface which allows instantiating the class instantly if the condition is met as
    opposed to addOnCondition which is only when the tag (action) is met.

Version 1.7.0

05 Nov 17:07
a92b1bc
Compare
Choose a tag to compare

Added

  • RestApi\PostTypeFilter, Api\WpCacheTrait & Api\WpQueryTrait.
  • PostTypeFilter can be initiated to add filter[] querying to the rest endpoints
    (enhanced rest filter of WP-API/rest-filter)
  • Default action/filter prefix constant in TheFrosty\WpUtilities\Plugin\Plugin called TAG

Updated

  • Add missing dependency "phpcompatibility" for require-dev.
  • Bumped WordPress version to 5.2 in travis.

Release 1.6.2

28 Oct 19:41
44d3353
Compare
Choose a tag to compare
Merge pull request #19 from thefrosty/develop

Use proper 'get' method when calling method within the toArray method.

Release 1.6.1

03 Oct 14:21
1dd7cd9
Compare
Choose a tag to compare

Add "abstract" like function getCustomDelimiters() to BaseModel to allow overwriting replacement/delimiter data in getMethod call.

Release 1.6.0

27 Aug 18:43
8a9ba28
Compare
Choose a tag to compare
Merge pull request #17 from thefrosty/develop

Version 1.6

Release 1.5.0

27 Mar 17:43
24dd15e
Compare
Choose a tag to compare

Added

  • New method addOnCondtion allowing hooks to be instantiated only when a condition is met.

Version 1.4.1

15 Feb 20:29
117f952
Compare
Choose a tag to compare
Merge pull request #14 from thefrosty/develop

Fix for too few arguments to function

Version 1.4

13 Feb 19:27
956fecf
Compare
Choose a tag to compare
Merge pull request #13 from thefrosty/develop

Disable Plugin Update Checks + bump PHP >= 7.1