This project adheres to Semantic Versioning.
- Fix:
Asset_Manager_Preload::set_asset_types()
should return an empty array if no valid arguments are passed. - Add:
convertDeprecationsToExceptions
tophpunit.xml
.
- Adds support for async and defer using the 'strategy' argument added for wp_enqueue_script in WordPress 6.3.
- Adds support for running the plugin on a Windows hosting environment (#57)
- Removes default kses allowed SVG attributes
- Fix PHP 8.2 deprecations.
- Removes
visibility:hidden
SVG sprite style declaration, which breaks some SVG element references (#50) - Upgrades to
mantle-framework/testkit
v0.11 (#50)
Changed
- The SVG Sprite is no longer hidden with
display:none
and instead visually hidden and moved offscreen (#49)
- Check for array key before using when preloading assets (#47).
- Upgrades to
mantle-framework/testkit
v0.10.1 (#47).
Changed
- Use
am_view_asset_error
meta capability to determine whether to display error messages related to asset enqueuing.am_view_asset_error
is mapped tomanage_options
by default.
Added
am_symbol_is_registered
for determining if a symbol is registered (#41)
Changed
- Filters kses allowed svg+use tags & attributes (#43)
Fixed
print_asset()
no longer fails for local files on WP VIP environments (#40)
- Updates the requirements on
mantle-framework/testkit
to permit the latest version (#36) - Addresses PHP 8 compatibility issue with the global usage in
Asset_Manager::add_core_asset()
(#37) - Fixes a bug where
get_svg()
returns false for local files on WP VIP environments (#39)
Adds support for registering SVG assets to be added to a template's sprite sheet, with methods for displaying those assets
Stable release 🎊
No large changes since v0.1.3 other than switching the unit tests over to Mantle Teskit
Added
am_inline_stylesheet
filter for inline stylesheets
Added
- GPL License
- Caching for
am_asset_conditions
- Composer Autoloader
- GitHub Actions CI
Added
- Supports
include_any
in thecondition
parameter for matching any condition (#10, #19) - Adds
am_preload
for preloading assets of any supported type (#16) - Improves overall plugin documentation
Changed
- Uses the print media swap method for async-loaded styles, based on Filament Group's The Simplest Way to Load CSS Asynchronously (#13)
Fixed
- Includes the
media
attribute only ifmedia
exists (#7) - Uses self-closing link tags (#7)
- Ensures
in_footer
is set (#8) - Corrects an issue where
loadCSS
was being output for load_methods other than defer (3510e8c)
Removed
am_enqueue_style
withload_method => preload
is no longer supported. For backward compatibility this configuration will patch in a call toam_preload
and alsosync
enqueue the asset (127acbc)- The
loadCSS
preload polyfill is removed since it is no longer supported (5d820d9)
Initial release.