=== Asset CleanUp Pro: Page Speed Booster ===
Contributors: gabelivan
Tags: unload css, unload javascript, plugin manager, critical css, performance
Requires at least: 4.7
Requires PHP: 5.6
Tested up to: 7.1.4
Stable tag: 1.2.8.8
License: Commercial

Unload unused CSS, JavaScript, and plugins by page to reduce page weight and improve WordPress front-end and Dashboard performance.

== Description ==

Asset CleanUp Pro gives WordPress administrators and developers granular control over the CSS, JavaScript, and plugins loaded on each request.

Use the CSS/JS Manager to unload or conditionally optimize assets. Use Plugins Manager to prevent entire plugins from loading where they are not needed, both on the front end and in the WordPress Dashboard.

Critical CSS, resource-loading controls, Test Mode, Overview, import/export, and debugging tools help you apply, review, and troubleshoot optimization rules safely.

For best results, make changes incrementally, test all affected page types, and clear the relevant page caches after updating the configuration.

= Main capabilities =

* Unload CSS and JavaScript on individual pages or by page type.
* Prevent entire plugins from loading where they are not needed.
* Manage rules for singular pages, taxonomies, archives, search results, authors, dates, and 404 pages.
* Configure Critical CSS and resource-loading attributes.
* Review and remove existing rules from the Overview.
* Test optimization changes before exposing them to regular visitors.

= External Services and Privacy =

**WordPress.org plugin icon service**

When an authorized administrator opens an Asset CleanUp Pro Dashboard screen and the local plugin-icon cache is missing or incomplete, Asset CleanUp Pro may request public plugin information from `https://api.wordpress.org/plugins/info/1.2/`. The request is used only to retrieve icons for active plugins displayed inside Asset CleanUp Pro. It can include the corresponding WordPress.org plugin slugs and standard HTTP metadata, including the server IP address. Asset CleanUp Pro does not intentionally include the site URL, administrator details, or site content. See the [WordPress.org Privacy Policy](https://wordpress.org/about/privacy/).

**Google Fonts preload audit**

When an authorized administrator explicitly runs the Google Fonts preload audit, Asset CleanUp Pro may request discovered Google Fonts stylesheets from `https://fonts.googleapis.com/` and process font-file URLs from `https://fonts.gstatic.com/`. Requests can include the stylesheet URL and its font-family, variant, subset, or `text` parameters; the browser user-agent used by the audit; and standard HTTP metadata, including the server IP address. These requests are made only as part of the administrator-initiated audit. See the [Google Privacy Policy](https://policies.google.com/privacy).

Manage Dashboard announcements and optional usage tracking in `Asset CleanUp Pro > Settings > Plugin Usage Preferences`.

**Dashboard announcements**

On new installations and after an upgrade, Pro uses “All updates and offers” if no preference is recorded. It periodically checks its online feed for maintenance notices, release updates, optimization tips, and occasional offers. The plugin does not intentionally include your site URL, administrator details, or site content in these requests. As with any HTTP request, the service receives the server IP address and standard HTTP metadata.

Choose “Security & release updates only” for security notices, key fixes, and major compatibility updates. Choose “All updates and offers” to also receive tips, general news, and occasional offers.

With either option enabled, choose where banners appear. The main Dashboard, Installed Plugins, and Asset CleanUp pages are selected by default. Keep at least one location selected or choose “Keep announcements off”.

Choose “Preferences” on any notice to change which announcements you receive. Select “Keep announcements off” and save to stop feed requests and Dashboard notices. Pro honors previously saved choices, including opt-outs.

**Optional usage tracking**

When an administrator explicitly enables usage tracking, Asset CleanUp Pro sends an initial technical check-in and then no more than one check-in per week to `https://www.assetcleanup.com/tracking/?wpacu_action=checkin`. The payload can include the PHP, WordPress, and Asset CleanUp versions; Asset CleanUp settings; first-use and review-notice state; server software; multisite status; the active theme name and version; active and inactive plugin file identifiers; and the WordPress locale. The site URL, administrator name, and administrator email are not intentionally included in the tracking payload. Disabling the setting stops future check-ins.

The announcements and usage-tracking services are operated by the Asset CleanUp developer. See the [privacy policy](https://www.gabelivan.com/privacy-policy/). The [hosting provider’s privacy notice](https://aws.amazon.com/privacy/) also applies to the announcements feed.

== Installation ==

1. In the WordPress Dashboard, go to "Plugins" -> "Add New" -> "Upload Plugin".
2. Upload the Asset CleanUp Pro ZIP file and activate the plugin.
3. Open "Asset CleanUp Pro" -> "License" and activate your license.
4. Review "Getting Started" before creating your first optimization rules.
5. Enable Test Mode while testing the initial configuration.

== Documentation ==

Full documentation and usage guides:

https://www.assetcleanup.com/docs/

== Changelog ==
= 1.2.8.8 - 22 November 2026 =
* **Improvement:** Choose all updates and offers, security & release updates only, or turn announcements off.
* **Improvement:** New and upgraded Pro sites with no recorded announcement preference now receive all updates and offers by default.
* **Improvement:** Choose where announcements appear: Dashboard Home, Installed Plugins, or Asset CleanUp pages.
* **Improvement:** Settings preserve announcement preferences and indicate when an announcement was used to opt out.
* **Security:** Verify that asset lists retrieved by the CSS/JS Manager and Alternative Assets were generated by the plugin for the current scan.
* **Security:** Fix an unauthenticated stored cross-site scripting (XSS) vulnerability involving comments on pages scanned with Alternative Assets. Asset URLs and metadata are now safely escaped in Overview, Bulk Changes and the CSS/JS Manager, including values stored before the update.
* **Security:** Apply Oxygen stylesheet unloads using rules evaluated by Asset CleanUp, so page content cannot change which stylesheets are removed.
* **Fix:** Settings distinguish a recorded opt-out from a missing announcement preference and preserve it across unrelated settings changes.
* **Fix:** Recognize the homepage during signed asset scans and preserve the selected page context and eligible guest cookies across redirects.
* **Fix:** With "WP Remote POST" selected, the CSS/JS Manager now refreshes the asset list correctly when you switch a post or page between public and private in the WordPress block editor.
* **Fix:** Saving rules for a post, page or latest-posts homepage preserves unload rules and load exceptions for files missing from the current scan or unavailable for editing.
* **Fix:** Combining CSS and JavaScript preserves active tag positions when the same file also appears in an HTML comment or in a script with a different loading strategy.
* **Fix:** CSS optimization preserves print conditions and cascade layers on `@import` rules, including when stylesheets are combined.
* **Fix:** Optimized stylesheets resolve relative image URLs from their original directory and preserve local SVG fragment references.
* **Fix:** Combining legacy Google Fonts stylesheets preserves all requested weights and styles and leaves text-specific requests separate.

= 1.2.8.7 - 18 November 2026 =
* **Improvement:** Allow validated remote Google Fonts variants to be selected for removal without waiting for local font processing when local hosting is disabled.
* **Improvement:** Disable redundant new bulk unload selections while a site-wide rule is active, preserving existing saved bulk rules.
* **Improvement:** Clarify category and tag archive scope in Plugins Manager and remove internal Asset CleanUp parameters from displayed front-end page URLs without changing visitor query parameters.
* **Improvement:** Extend selective Google Fonts removal to more JavaScript font loaders and WP Rocket delayed scripts, preserving other font providers and callbacks.
* **Compatibility:** Selective removal keeps the entire original Google Fonts list when emptying a global WebFontConfig, or a WebFont.load() call without another supported font provider, could disrupt page loading. Those fonts may still load. Unsupported HTML or JavaScript remains unchanged; these limits are explained beside the setting.
* **Fix:** Continue inline JavaScript optimization after common SVG, MathML and recoverable HTML attribute errors, while preserving template, text and comment content.
* **Fix:** Preserve JavaScript execution order and legacy comment boundaries during optimization.
* **Fix:** Preserve theme styles, empty runtime style elements and inert HTML when removing Google Fonts. Keep URL encoding, unrelated font requests and dynamically constructed JavaScript URLs intact.
* **Fix:** Apply Google Fonts removal, font-display and local-hosting changes to external JavaScript even when minification is disabled, and refresh outdated font-processing caches.
* **Fix:** Preserve saved Google Fonts removal selections while local font processing is pending or settings are changed.
* **Fix:** Preserve saved preload settings when their controls are unavailable, while allowing editable assets to return to "No (default)" in both managers.
* **Fix:** Correct Admin Bar unload statistics for late footer assets and scripts with missing dependencies, preserving toolbar customizations.
* **Fix:** Correct archive context and saved unload checkbox states on WordPress taxonomy edit screens, and prevent incorrect homepage or posts-page notices.
* **Fix:** Preserve individual archive rules covered by bulk rules, and allow rules for numeric asset handles and the last taxonomy-wide load exception to be removed.
* **Fix:** Preserve CSS/JS rules when a taxonomy term is edited without a loaded Asset CleanUp manager. Require the manager's form marker, matching nonces and permissions before changing its rules.
* **Fix:** Save CSS/JS rules to the correct WPML taxonomy translations in both the Dashboard and front-end manager.
* **Fix:** Keep CSS/JS row highlighting and load-exception controls consistent when changing individual, bulk and site-wide unload rules.
* **Fix:** Preserve descendant selectors when minifying the plugin's interface styles.

= 1.2.8.6 - 16 November 2026 =
* **Improvement:** Updated optional Dashboard announcements with refreshed layouts and messages tailored to the license plan.
* **Fix:** Improve cache busting for the plugin's own CSS/JS files to prevent outdated styles and scripts from affecting the interface after updates.
* **Fix:** Prevent attached inline CSS and JavaScript data from being duplicated when combining files, preserving their original position when they cannot be safely combined.
* **Fix:** Make BODY script defer processing safer around inline content, templates and quoted attributes, while supporting common SVG graphics, including WordPress duotone filters.
* **Fix:** Preserve existing font preload settings during unrelated settings updates, including configurations saved by older plugin versions.
* **Fix:** Avoid excessive regular-expression recursion when processing unusually long HTML tags on older PHP versions, including during Critical CSS preview cleanup.

= 1.2.8.5 - 12 November 2026 =
* **New:** Manage plugin rules by page, directly from the front-end or the WordPress post editor, alongside the existing "By plugin" layout.
* **New:** Added plugin unload rules and load exceptions for entries of a selected post type assigned to any term in selected taxonomies.
* **New:** Pause and resume CSS/JS rules and Alternative Assets independently without deleting their saved configuration.
* **Fix:** Preserve settings belonging to the inactive plugin edition when saving Settings or changing individual options through AJAX controls. Validate submitted form fields against the active edition's settings.
* **Fix:** Validate submitted Plugins Manager rule statuses before preserving scoped taxonomy rules, avoiding PHP warnings for malformed values.
* **Fix:** Guard Plugins Manager helpers during updates and open saved post-type taxonomy rules directly from "By plugin", without requiring an individual entry.
* **Fix:** Keep Critical CSS preview cleanup confined to actual stylesheet tags, preserving marker-like text in other page content.
* **Fix:** Preserve empty SCRIPT/STYLE markup in page content during cleanup, including STYLE literals used by JavaScript to create elements dynamically.
* **Fix:** Remove temporary JS source markers from preload links, and handle whitespace consistently in CSS/JS unload query lists.
* **Security:** Restrict asset diagnostic dumps to users with plugin access and escape their HTML output, including hardcoded asset data.
* **Security:** Restrict credentialed front-end CORS responses to trusted origins while preserving requests from the primary Dashboard to WPML/Polylang language domains. Additional trusted origins can be configured with `wpacu_frontend_cors_allowed_origins`.
* **Security:** Fix SQL injection in Plugins Manager author archive detection by parameterizing the author lookup and rejecting invalid input types.
* **Security hardening:** Make temporary CSS/JS attribute cleanup safer by preserving inline JavaScript, quoted attribute values and text content. Ambiguous or unsupported HTML is left unchanged to avoid breaking the page, so some temporary markers may remain in the page source. Existing reflected-XSS and stored-XSS protections remain in place.

= 1.2.8.4 - 17 October 2026 =
* The front-end CSS/JS Manager now runs in an isolated iframe to prevent styling conflicts with themes and plugins; mobile layout issues have also been corrected
* Cache clearing now works without jQuery, avoids unintended page reloads and confirms successful manual cache clearing
* Improved cache-clearing messages with consistent styling and mobile-friendly wrapping, while avoiding unnecessary stylesheet loading on front-end pages
* Improved stylesheet deferral and conditional preloading
* Fixed execution order for conditionally loaded scripts and unloading of empty inline scripts
* **Fix:** "System Info" report download button, and added a loading state to the download button.

= 1.2.8.3 - 5 October 2026 =
* **New:** Added "Alternative Assets" to the CSS/JS Manager. Create and edit lighter alternatives for CSS and JavaScript assets that still need to load, choose where the alternatives are used, and compare their sizes without modifying the original source.
* **Improvement:** Reduced redundant processing during Combine CSS/JS cache validation and avoided unnecessary cache rebuilds when separate inline JavaScript, JSON content, or CSP nonce values change.
* **Improvement:** Import/Export preserves Pro settings and rules when transferred through Lite, ready for use after upgrading to Pro.
* **Fix:** Improved Combine CSS/JS reliability, including asset ordering, cache invalidation, regeneration of missing combined files, and homepage cache cleanup.
* **Fix:** Improved JavaScript combining and BODY defer handling to preserve script execution order and existing defer behavior while safely applying defer to eligible BODY scripts.

= 1.2.8.2 - 28 September 2026 =
* **Added:** Roll back Asset CleanUp Pro to an eligible previous version from "Tools" (plugin's menu) - "Rollback", with version selection and confirmation before installation. Existing settings are preserved.
* **Security — Admin Bar:** Fixed a reflected cross-site scripting (XSS) vulnerability in the admin bar by validating asset unload parameters and escaping dynamic output (CVE-2026-92236). Reported by 'Huseyn (mekhatai) Gadashov' via Wordfence.
* **Security — Comment Content XSS:** Completed the fix for the stored cross-site scripting via comment content (follow-up to CVE-2026-13354). The final cleanup of the plugin's temporary `data-wpacu-*` attributes on `<script>` tags — previously two whole-document replacements — is now scoped to each `<script>` tag and uses bounded, quote-aware patterns. Reported by 'crow' via Wordfence.
* **Security — Front-end HTML Cleanup:** Removed the last remaining whole-document replacement from the HTML cleanup step (it stripped `data-wpacu-style-handle` from `<link>` tags); that cleanup now runs through the same tag-scoped methods. Found during the internal review that followed the report above. Every temporary-attribute cleanup is now confined to the tag it belongs to and cannot touch any other part of the page, including user-submitted content.

= 1.2.8.1 = 15 September 2026 =
* **New:** Admin Bar transfer savings estimates for unloaded CSS/JS files and removed inline code, with AJAX-based measurements and Brotli/GZIP indicators.
* **Improvement:** Separate effective asset unloads from rules that had no effect on the current page, with inactive rules grouped by asset type.
* **Improvement — Rule Management:** "Overview" is now the recommended place to review and manage bulk rules, including dormant rules left behind by deleted pages or deactivated plugins. Removed "Bulk Changes" from the top navigation, WordPress sidebar, and Admin Bar. The legacy page remains accessible through its direct URL and existing bookmarks: /wp-admin/admin.php?page=wpassetcleanup_bulk_unloads
* **Improvement:** The "CSS/JS Manager" and Admin Bar now explain when "Page Options" disable optimizations, including CSS/JS unload rules. Admin Bar warnings identify disabled features, while clearer descriptions, dimmed overridden options, and quick links make these settings easier to understand.
* **Improvement — Debugging "/?wpacu_debug":** Added temporary "Page Options" overrides without changing saved settings. Debugging controls now update their availability and distinguish global restrictions, Page Options overrides, and missing rules.
* **Improvement — Debugging "/?wpacu_debug":** Added per-file CSS/JS optimization details explaining content changes, unchanged results, exclusions, failures, and cache decisions. Multiple optimization reasons can be shown for the same file.
* **Improvement — Overview:** Added navigation entries for "Page Options" and "Special Settings", clarified page overrides, and dimmed redundant options.
* **Fixed — Interface:** Corrected "Overview" horizontal overflow and alignment
* **Fixed — CSS Optimization:** When an optimized stylesheet has a matching `<noscript>` fallback, the fallback now uses the same optimized cache URL instead of retaining the original unminified URL.
* **Fixed — CSS/JS Manager:** Selecting “Remove bulk rule” or "Remove site-wide rule" now correctly removes the unload rules when saving changes.
* **Fixed — Page Options:** Fixed an issue where CSS/JS processing could still run on pages with "Disable all front-end optimizations" enabled. The plugin now checks the current page’s options before retaining the decision to allow optimizations, preventing unnecessary processing on excluded pages.

= 1.2.8.0 - 9 September 2026 =
* **Improvement:** Reduced Google Fonts browser discovery traffic by running the collector for approximately 2% of public browsers while preserving duplicate protection for known configurations.
* **Improvement:** Made the Google Fonts discovery REST endpoint compatible with sites where WordPress pretty permalinks or REST rewrite rules are unavailable.
* **Fixed:** Browser discovery is now disabled by default, preventing discovery REST traffic on new or previously unsaved configurations until the feature is enabled.

= 1.2.7.9 - 6 September 2026 =
* **Added — Google Fonts:** Added local hosting for Google Fonts, allowing detected stylesheets and font files to be downloaded, validated and served from the local cache.
* **Added — Google Fonts:** Added granular font removal, allowing specific Google Font families, weights and styles to be removed while keeping the remaining fonts unchanged.

= 1.2.7.8 - 26 August 2026 =
* **Improved — Live Debugging:** Redesigned the frontend Live Debugging interface (`/?wpacu_debug`) with theme-independent styling, clearer temporary controls, searchable plugin selection, expandable request and performance details, unavailable-option indicators, and a responsive floating action bar.
* **Improved — Data Compatibility:** Hardened handling of legacy or unexpectedly formatted stored plugin data, preventing warnings or failures when settings and rules are already stored as arrays instead of JSON strings.
* **Improved — Import/Export:** Added stricter structural validation before importing settings and rules, preventing malformed configuration data from being partially imported.
* **Improved — Plugin Icons:** Improved WordPress.org plugin icon fetching and cache recovery so missing icons can be downloaded again instead of remaining permanently replaced by the default icon.
* **Improved — Access Control:** Access-control settings are now hidden from delegated plugin managers who are not permitted to manage plugin access.
* **Fixed — Plugins Manager:** Prevented taxonomy and archive requests, including WooCommerce product categories, from being misidentified as singular pages in Plugins Manager rules.
* **Fixed — Overview:** Prevented warnings and invalid links when saved rules reference deleted or unavailable taxonomies or taxonomy terms, while keeping the affected rules visible for review.
* **Fixed — JavaScript Optimization:** Prevented warnings when optional JavaScript optimization settings are unavailable or disabled.
* **Security — Debugging Overrides:** Hardened temporary query-string settings overrides with administrator authorization and nonce validation, and prevented request-scoped troubleshooting values from being accidentally persisted to the database.
* **Compatibility — PHP 8.5:** Avoided the deprecated `curl_close()` call on modern PHP versions.
* **Maintenance:** Removed legacy CSS and obsolete browser-specific declarations and performed related internal cleanup.

= 1.2.7.7 - 21 August 2026 =
* **Added — Font Preload Audit:** Added a browser-assisted audit for manually preloaded Local and Google Fonts. The audit checks representative pages in desktop and mobile viewports, identifies duplicate, invalid or unnecessary site-wide preloads and provides conservative cleanup recommendations without removing the fonts themselves.
* **Added — Critical CSS:** Added a global control directly in the Critical CSS Manager to temporarily pause or resume all Critical CSS output while preserving the existing rules.
* **Added — Tools / Storage:** Added a read-only Database Map showing where Asset CleanUp stores settings, optimization rules, metadata, transients and Pro-specific data.
* **Added — Tools / Uninstall:** Added a dedicated, explicitly confirmed action for removing all Asset CleanUp data before uninstalling the plugin, including settings, optimization rules, metadata, transients, license data and generated cache files.
* **Improved — JavaScript Optimization:** Improved handling of modern JavaScript, including module/nomodule scripts and scripts using integrity, nonce, crossorigin or referrerpolicy attributes, preventing unsafe combine, inline or Match Media transformations.
* **Improved — Resource Loading:** Hardened image attribute and lazy-loading rule validation, improved compatibility with rules saved by older versions and fixed edge cases where attributes such as `src` could be confused with `data-src`.
* **Improved — CSS/JS Manager Settings:** Redesigned the manager preferences area with clearer navigation and explanations, better-organized controls for management locations, access, list appearance and optimized-file cache settings.
* **Improved — Settings and CSS/JS Manager:** Added unsaved-change counters and persistent save areas, making modified settings and asset rules easier to review before saving.
* **Improved — Dashboard Reliability:** Improved AJAX validation, authorization and failure recovery across several Dashboard actions, including safer handling of invalid, expired or interrupted requests.
* **Improved — Tools / Storage:** Added a detailed overview of generated CSS/JavaScript storage, including directory paths, file counts, disk usage, write status and filtering between optimized assets and supporting files.
* **Improved — Tools / Debugging:** Redesigned the troubleshooting area with clearer diagnostic modes, copyable test URLs and protected PHP error-log downloads.
* **Improved — Tools / Reset:** Added more granular reset options for Critical CSS and front-end or Dashboard Plugins Manager rules, with clearer confirmation, deletion summaries and partial-failure reporting.
* **Improved — Tools / Uninstall:** Cleanup results are shown on the Plugins page and partial filesystem failures are reported instead of returning a false success. Plugin settings are not recreated after cleanup.
* **Improved — Multisite Uninstall:** Network-shared user access data and the Pro MU-plugin loader are preserved while Asset CleanUp Pro remains active on another site in the network.
* **Fixed — Plugin Rules:** Fixed request-context detection on sites using plain permalinks, preventing homepage, search, author, date and taxonomy requests from being incorrectly treated as the same context.
* **Fixed — Multisite Plugins Manager:** Improved detection and handling of network-active plugins across Plugins Manager rules and WPACU internal requests.
* **Fixed — Dashboard CSS/JS Manager:** No longer reports a false external redirect or fails to fetch assets when WordPress runs on a non-standard port (e.g. localhost:8888)
* **Fixed — Usage Data Settings:** Fixed an undefined variable warning in the usage-data disclosure panel.
* **Fixed — CSS and JavaScript:** Combining now works when minification is disabled.
* **Fixed — Upgrade Compatibility:** Recently introduced access-control settings now receive their correct disabled or empty-list defaults when upgrading from older versions, preventing blank fields or unexpectedly enabled checkboxes.
* **Privacy — Dashboard Announcements:** Remote announcements are now disabled by default and require an explicit administrator opt-in.
* **Security — Remote Asset Handling:** Further hardened remote asset retrieval and redirect validation, including safer handling of dynamically loaded resources and restricted redirect behavior.
* **Security — License Administration:** Removed an unsafe legacy GET-based license-status workaround and retained the protected POST-based recovery action.
* **Security — Plugin Updater:** Replaced remote PHP deserialization with native JSON collection validation.
* **Security — License Server Output:** Added strict allowlist sanitization for promotional HTML returned by the license server.

= 1.2.7.6 - 12 August 2026 =
* **Added — Plugins Manager:** Introduced three interchangeable frontend rule layouts: Compact Grid, Grouped and Classic. Plugin rules remain shared between layouts.
* **Added — Plugins Manager:** Added plugin search and highlighting, rule/status counters, improved expand/collapse states, an unsaved-changes summary and a shared save dock.
* **Improved — Plugins Manager:** Improved settings reliability and group expand/collapse controls, including clearer state handling and recovery when an AJAX request fails.
* **Security — Dashboard CSS/JS Manager:** Hardened asset retrieval against SSRF, including redirect-destination, host, credential and alternate-port validation.
* **Improved — Dashboard CSS/JS Manager:** When a selected URL redirects to another allowed internal URL, explicit confirmation is required before loading assets from the final destination. The redirected URL remains visible after loading. Redirects from non-homepage contexts to the homepage remain blocked.
* **Improved — Admin Experience:** Major UI/UX refresh across Settings, Help, Getting Started, Critical CSS and multiple vertical/horizontal tab sections, including clearer layouts, spacing, typography, accessibility and content organization.
* **Improved — Interface Controls:** Added a choice between the enhanced WPACU controls and standard browser-native form controls across supported admin areas.
* **Performance:** Reduced expensive processing during updates and moved stale hardcoded-asset information cleanup to a scheduled maintenance task, particularly benefiting multilingual sites and installations with many saved rules.
* **Maintenance:** Reorganized Critical CSS and Plugins Manager styles.

= 1.2.7.5 - 4 August 2026 =
* **Added — Plugins Manager:** Added the "On specific posts, pages, products, or other entries" rule to unload plugins, or keep them loaded as exceptions, on selected singular entries. Rules are matched using resolved post IDs, so they continue to work after permalink or slug changes. [Read more](https://www.assetcleanup.com/docs/?p=2486)
* **Added — Plugins Manager:** Added the "On singular entries assigned to any of these taxonomy terms" rule to unload plugins, or keep them loaded as exceptions, according to taxonomy terms assigned to a post, page, product, or other custom post type entry. [Read more](https://www.assetcleanup.com/docs/?p=2471)
* **Improved — Plugins Manager:** Hierarchical child pages, such as `/parent/child/`, are now correctly detected by unload rules and load exceptions.
* **Improved — Plugins Manager:** Added a notice when rules are preserved for inactive or not-installed plugins, with direct access to review them in the Overview.
* **Compatibility — WPML:** Exact singular-page unload rules and load exceptions now match translated permalinks at the early MU-plugin stage, including translated slugs, language directories, query-string languages, and separate language domains. The stored URL map is refreshed when relevant slugs, parent paths, permalink settings, or WPML URL settings change.
* **Fixed — Plugins Manager:** Rules for inactive or not-installed plugins are now preserved when front-end or Dashboard configurations are saved.
* **Improved — Critical CSS:** Critical CSS can now be managed with the same granular page-type coverage as the CSS/JS Manager, including individual posts, pages, custom posts, taxonomy terms, author archives, date archives, search results, 404 pages, and custom post type archives.
* **Improved — CSS/JS Manager:** Assets for virtually any supported page type can now be managed directly from the WordPress Dashboard, including archive pages that previously required front-end management.
* **Improved — Overview:** Added quick section navigation, an optional sticky navigation bar, and back-to-top links.
* **Fixed — Overview:** Plugins Manager rules are now shown when the targeted plugins are not installed.
* **Fixed — Import/Export:** The "Everything" option now includes all supported rules and Critical CSS data.

= 1.2.7.4 - 9 July 2026 =
* **Fixed:** Prevented a fatal error when "Prevent Asset CleanUp Pro from triggering on certain pages" was used and the RegEx helper class was unavailable while early triggers were loaded through the MU-plugin integration.
* **Fixed:** Ensured core plugin constants are initialized from the main plugin file, preventing incorrect plugin-basename detection in edge cases.

= 1.2.7.3 - 8 July 2026 =
* **Added — Overview:** Added Edit Mode, allowing unload/load rules, load exceptions, script attributes, plugin rules, page options, and other stored settings to be cleared from one central location.
* **Added — Overview:** Added detection and removal of leftover rules, including rules associated with inactive or deleted assets and plugins.
* **Improved — Overview:** Made managing and cleaning existing rules significantly easier, particularly on sites with many optimization changes accumulated over time.
* **Improved — Admin bar:** Added hover details for unloaded CSS/JS assets and plugins, showing the matched unload rule and its relevant value when available.
* **Changed:** Reworked internal RegEx handling and replaced the previous third-party RegEx library with a dedicated lightweight class. This reduces the plugin package size while retaining support for plain-text rules, RegEx rules, and existing legacy patterns.
* **Security:** Hardened CSS optimization HTML cleanup so temporary WPACU attributes cannot affect user-controlled markup.
* **Security:** Added validation for AJAX-loaded asset-retrieval URLs and switched remote DOM retrieval to `wp_safe_remote_post()`.

= 1.2.7.2 - 25 May 2026 =
* **Added — Resource Loading:** Added automatic lazy loading for images. Location: "Settings" -> "Resource Loading" -> "Lazy Load". [Read more](https://www.assetcleanup.com/docs/?p=2403)
* **Changed — Resource Loading:** Improved the image-attributes data structure. If you upgrade and later downgrade to an earlier plugin version, image-attribute rules might need to be configured again.
* **Improved — Resource Loading:** Improved how the `fetchpriority`, `loading`, and `decoding` attributes are added to images. Location: "Settings" -> "Resource Loading" -> "Image Attributes". [Read more](https://www.assetcleanup.com/docs/?p=2279)
* **Improved — Admin bar:** Refined hover behavior for nested "Asset CleanUp Pro" submenus to reduce accidental menu closing.
* **Compatibility:** Refined admin CSS to remain consistent with WordPress 7.0 layout changes.

For releases 1.2.7.1 and earlier, see `CHANGELOG.md` included with the plugin.
