Optimize JS: If a JS file is loading based on the media query set (e.g. only on mobile view), make sure that any associated inline JS that is printed "after" the main JS file, is triggered only after the main JS file is loading (if the media query matches), and never immediately to avoid JS "undefined" errors in the console and even broken functionality
Optimize JS: When the WordPress core file "wp-i18n" is unloaded, the SCRIPT tag is replaced with another tag (much ligther) keeping "setLocaleData" and other functions active to avoid JS errors being shown in the console (ideal for websites with just one language)
Optimize JS: When a JS asset is unloaded and the option 'Ignore dependency rule and keep the "children" loaded' is used, make sure the inline JS associated with the asset is also cleared to avoid any JS errors in the console or even broken page functionality
Improvement: Detect an attribute found in a tag without using RegEx (for faster PHP processing)
Fix: When using the "Direct" assets retrieval method, any unloaded plugins for the homepage, would not show up as unloaded in the CSS/JS manager, confusing the admin that the rules might not be applied
Fix: Avoid errors such as the following (in case plugin functions are called too early by external code): 'Asset CleanUp's object cache is not valid (from method "WpAssetCleanUpObjectCache::wpacu_cache_get").'
Fix: "CSS & JS Manager" -- "Manage CSS/JS" -- "Custom Taxonomy" was not showing the guiding information
Fix: When managing CSS/JS in the front-end view, plugin's core JS file was not loading, causing some lack of functionality in the CSS/JS manager from the bottom of the page
New Feature For The Admin: "Settings" -- "Plugin Usage Preferences" -- "Announcements" / The admin would be notified within the Dashboard (if he/she prefers) of critical updates, new features, usage tips, special offers / read more: https://www.assetcleanup.com/docs/?p=1946
Make sure plugin generated STYLE/SCRIPT inline tags (e.g. from features such as "Inline CSS/JS") have the "type" attribute (unless the theme supports HTML5) / read more: https://www.assetcleanup.com/docs/?p=2086
New Option in "Settings" -- "Plugin Usage Preferences" - "Plugins Manager" - "IN FRONTEND VIEW (your visitors)": "Additional Query Strings to Ignore for Homepage Detection" (new option to add extra query strings to be ignored for early homepage detection) / read more: https://www.assetcleanup.com/docs/?p=2130
Added "Plugins Manager" tab to "Settings" -- "Plugin Usage Preferences": Configure settings related to the plugins loaded in both the front-end and the /wp-admin/ area; Tthe same settings were already added in the "Plugins Manager" main area; URI: /wp-admin/admin.php?page=wpassetcleanup_plugins_manager
Moved "CSS/JS Cache" tab into the "CSS/JS Manager" one and grouped options within the 'CSS/JS Manager' (for better readability)
Fix / Notice: "Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the 'wp-asset-clean-up' domain was triggered too early."
Improvement: Plugin Updater / When using /?wpacu_force_plugin_updater in the Dashboard (e.g. in the "Plugins" page), the cache related to the latest detected version is cleared (e.g. in case the admin has problems updating the plugin, the query string can be used, before re-trying the plugin update)
Improvement: "Plugins Manager" - Added the "currency" query string to the list of common strings that are ignored when an early detection is made for the homepage (e.g. www.yoursite.com/?currency=EUR is considered the homepage)
Fix: "Plugins Manager" - "IN FRONTEND VIEW (your visitors)" / "Enable all the rules below" option / Make sure it always updates on click as there were issues with it in the previous release
Fix: "Plugins Manager" - Sometimes, while being in the "IN FRONTEND VIEW (your visitors)" tab, errors were showing for the "IN THE DASHBOARD /wp-admin/", thus, confusing the admin
1.2.6.2 - 14 January 2025
* New option for unloading whole plugins within the Dashboard (/wp-admin/): on admin pages with at least one plugin unloaded (depending on the rules set in "Plugins Manager" -- " IN THE DASHBOARD /wp-admin/"), restore the sidebar as it used to be when there were no plugins unloaded, in case there are missing menu links from the unloaded plugins (for a better user experience) / more: https://www.assetcleanup.com/docs/?p=1923
Asset CleanUp Pro Changelog 1.2.6.1 - 22 Dec 2024
Fix - Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in [...]/templates/_admin-page-settings-plugin-areas/_plugin-usage-settings/_access.php:43
Fix - PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in [...]/classes/OptimiseAssets/OptimizeCommon.php on line 994
Fix - PHP Warning: Undefined global variable $wpassetcleanup_external_srcs_ref
Fix - PHP Warning: preg_match(): Compilation failed: regular expression is too large at offset [...] / Location: /classes/OptimiseAssets/OptimizeJs.php on line 985
Fix for "Media Query Load": Avoid any errors in case the targeted attribute is not found and the rule cannot be applied (e.g. another optimisation plugin altered the LINK/SCRIPT tag) / Example: "Uncaught TypeError: Cannot read properties of undefined (reading 'getAttribute')"
Asset CleanUp Pro v1.2.6.0 - 2 Dec 2024
* Fix: Server Side Request Forgery (SSRF) has been discovered on an AJAX call within the CSS/JS manager; New parameters were added to the call to avoid any unsanitized input