== Changelog == = 2.0.33 (November 23, 2026) = - Improvement: Load admin scripts and styles only on the screens that use them - Improvement: Ship third-party packages in vendor-prefixed/, list bundled JavaScript libraries with their licenses, and move older changelog entries to changelog.txt - Improvement: Remove Geo Targeting from the add-on list, and unused translation files, icons and templates - Improvement: Rebuild the License screen: licenses sync from the shop, and add-ons, activations and auto-updates are managed from each license card - Improvement: Remove pricing links from the Dashboard widget and promotional claims from the readme and admin texts - Improvement: Load the dashboard tutorials feed on click; feeds and help articles no longer send the site URL - Fix: Preserve saved inline CSS when rendering manual placement shortcodes - Fix: Ignore override arguments in ad, group and placement shortcodes so normal rendering checks are applied - Fix: Install and update add-ons only from the shop's own host, restrict rollback package URLs, and stop license changes from activating or deactivating plugins - Fix: Decode add-on update data without creating objects - Fix: Correct ads.txt paths on subdirectory installs and a PHP warning when no AdSense ID is set - Fix: Escape shortcode, placement, inline CSS and PubGuru output - Fix: The "Ads in content disabled" and Display Once ad list filters work without Advanced Ads Pro - Fix: Filter Plain ads saved before 1.35.0 by authors without unfiltered_html, and restore KSES after ad expiry and PubGuru imports - Fix: Prefix global names and helpers, and use HTTPS for newsletter links - Fix: Filter Rich Content ads like Plain Text and Code ads: scripts and iframes are removed when the ad author cannot use unfiltered HTML - Fix: Sanitize request input, notice keys, newsletter groups, Google Sheet rows and saved AdSense codes, and check each nonce on its own = 2.0.32 (November 18, 2026) = - Improvement: Require WordPress 6.9 and bundle Action Scheduler 4.2.0 - Improvement: Add an External services section to the readme that lists every remote connection, what is sent and when - Improvement: The dashboard tutorials feed sends the same request from every site and picks the AdSense tutorials on the site - Improvement: Load What's New only when its panel is opened and Support screen videos only on click - Improvement: Ship the Welcome screen testimonial photos with the plugin instead of loading them from remote servers - Improvement: The periodic tutorials newsletter is now a real opt-in that is unticked by default - Improvement: Anonymize in usage data replaces the site address with a random ID; the setup wizard lists only data that is collected - Improvement: Plugin-conflict and invalid-license notices can be dismissed - Improvement: Show newsletter notices only on Advanced Ads screens - Improvement: Review links open all reviews, and review prompts no longer ask for five stars - Improvement: Remove the translation promo box, the expired Black Friday notices and the locked "repeat the position" checkbox (Advanced Ads Pro still adds a working one) - Improvement: Align the license strings in composer.json and package.json on GPLv2 or later - Improvement: Share wp_kses() allowlists through WordPress::allowed_html() - Improvement: Add a .pcpignore file for Plugin Check runs - Fix: Major Advanced Ads updates are no longer held back from auto-updates - Fix: Changing auto-updates requires the update_plugins capability - Fix: Add capability checks to placement updates over REST, importer actions, option imports and AJAX handlers - Fix: Sanitize request data, nonces and AdSense input before use - Fix: Escape output across admin screens, image ads, the PeepSo integration and importers - Fix: Imports by users without unfiltered_html no longer change the "allow unfiltered HTML" setting - Fix: Upload XML imports with wp_handle_upload() - Fix: Store the ads.txt backup in uploads instead of the site root, and write the AdSense debug log to the PHP error log - Fix: Export no longer fails when the AdSense module is disabled - Fix: Block direct access to every PHP file - Fix: Use the advanced-ads text domain for all strings - Fix: Prefix AJAX actions, filters and global names - Developers: AJAX actions renamed to advads_search_posts, advads_pubguru_connect, advads_pubguru_disconnect, advads_pubguru_module_change, advads_pubguru_backup_ads_txt, advads_update_oneclick_preview, advads_load_ad_parameters_metabox, advads_load_visitor_conditions_metabox and advads_load_display_conditions_metabox - Developers: Filters pubguru_current_page, pubguru_page_script_tag and pubguru_module_status_changed renamed to advanced-ads-pubguru-current-page, advanced-ads-pubguru-page-script-tag and advanced-ads-pubguru-module-status-changed - Developers: Filter advanced-ads-gadsense-unit-code-markup removed; the AdSense ad slot ID field renders directly - Developers: XML_Encoder is now AdvancedAds\Importers\XML_Encoder, AdSense_Report_Data is now Advanced_Ads_AdSense_Report_Data, and the NOTICE_TYPES constant is now ADVADS_NOTICE_TYPES - Developers: The ad-blocker asset folder under uploads now starts with aa-; existing folders are migrated on the next rebuild - Developers: The page parser runs on the core wp_template_enhancement_output_buffer filter instead of its own output buffer = 2.0.31 (November 11, 2026) = - Improvement: Remove Black Friday early-bird VIP promotion banner from Advanced Ads screens and the WP Dashboard - Fix: restore legacy ads.txt keys and guard display condition operator = 2.0.30 (November 7, 2026) = - Improvement: Black Friday early-bird VIP promotion banner on Advanced Ads screens and the WP Dashboard = 2.0.29 (October 14, 2026) = - Fix: Urgent fix for version number = 2.0.27 (October 14, 2026) = - Improvement: Redesigned the Plugins-screen deactivation feedback modal - Improvement: Add rescue fallback on init to expire published ads missed by Action Scheduler cron - Improvement: Add gear icon and dropdown on the License page with Sync licenses and Disconnect Account actions, including a button to refresh licenses from the shop - Improvement: Licenses page row hides the activated sites count and domains when the license owner opts out on the Shop Account Page - Improvement: Add-on updates now run through the WordPress update system and require the latest version of each add-on - Improvement: All Access licenses cover every active add-on without activating each one and include Geo Targeting - Improvement: PHP in a plain text ad now runs only when the author of the ad may use unfiltered HTML - Improvement: Remove automatic deactivation of add-on versions from before Advanced Ads 2.0; updating directly from 1.x is no longer supported - Fix: Avoid fatal error in admin notices by ensuring the notice class exists before invoking its display function - Fix: Fatal error caused by invalid ad option data - Fix: Hide App menu item by slug instead of `:last-child` to prevent hiding add-on pages - Fix: Improved sanitization of ad wrapper attributes on shortcode injection - Fix: Fatal error caused by a missing second argument on the `http_headers_useragent` filter call during cache bot checking - Fix: Ad expiry dates on quick bulk edit could be corrupted to year 0000 when saved with incomplete data - Fix: Quick Edit expiry year not prefilling for past dates - Fix: Resolve missing update notifications by fixing API endpoint URL handling during updater class initialization - Fix: PubGuru import using fallback units instead of API ad units due to an incorrect loop variable name - Fix: PubGuru ad unit slot names mapping to the correct placement type - Fix: Resolve placement clearfix option not saving when disabled - Fix: Ad weights higher than the remaining group count now persist correctly after deleting ads, preserving delivery odds - Fix: Polyfill `react-jsx-runtime` from `window.React` on WordPress versions before 6.6 to resolve a blank License page - Fix: Prevent subscribers from accessing private ads via the AJAX ad renderer - Fix: Renewed licenses remaining expired locally even after syncing, blocking add-on installation and activation - Fix: Add safeguard against fatal errors when opening a placement assigned to a deleted ad group - Fix: Undefined property warning on Groups list when using PHP 8+ by overriding the `aria-label` method in `List_Table` - Fix: Remove plugins page `wp-cookies` dependency causing a notice on the Plugins screen in WordPress 6.9.1+ - Fix: Placement checkbox options not being disabled when unchecked; add missing null guards - Fix: Keep Dashicons visible on primary buttons in the Advanced Ads admin header - Fix: Prevent updater and Action Scheduler fatals when Free is removed during a request - Fix: Fatal error in the Ad Inserter import when its stored settings are damaged - Fix: Deprecation notice on PHP 8.2 and later in the list of AdSense ad units - Fix: Show the "Adjust Auto ads options" link in the AdSense settings again - Fix: AdSense API quota message showing "1 hours 60 minutes" and never leaving out a zero part - Fix: Saved AdSense earnings report could not be read back, so the report was requested from Google again on each view - Fix: AMP for WP Ads import left an ad without display conditions when its visibility setting was not recognized - Fix: Dashboard news feed was chosen from a fixed earnings value instead of the real AdSense earnings of the site - Fix: Fatal error when deleting an ad, group or placement by an ID that does not exist - Fix: PHP warning when importing from Ads for WP Ads or Ad Inserter and a margin or display type is not set - Fix: PHP warning on the PubGuru import when the configuration has no ad units = 2.0.26 (August 3, 2026) = - Improvement: bulk Activate all and Deactivate all for Included add-ons with license activation - Fix: fatal error when groups contain invalid ad ids - Fix: license rest api for non-post name permalinks - Fix: fatal error in Ad Health notices - Fix: license activate flow, Sites count, notice dismiss, and install crash - Fix: shortcode vulnerability for content attribute - Fix: incorrect Ad count for All view at list table - Fix: unauthorized plugin update download site was not activated on the shop. - Fix: help links and internal compatibility improvements = 2.0.25 (July 10, 2026) = - Fix: Item object (ad/group) set parent affecting shared factory instance on placement abstract - Fix: license screen download failed = 2.0.24 (July 6, 2026) = - Fix: UI fixes for Advanced Ads widget buttons on WP Dashboard on WP 7+ - Fix: a compatibility issue with group ad weights = 2.0.23 (June 30, 2026) = - Improvement: Change email address to send plugin uninstall feedback - Fix: When user interrupted custom position frontend picker selection, traces were left on localStorage object, causing JS errors - Fix: Add early bail before quick edit fillInputs function, legacy CSS on list pages updated - Fix: Make string type nullable on add_body_class functions, to prevent null values from 3rd party plugins - Fix: Adblocker notice being shown on admin pages even with Shields disabled on Brave browser - Fix: Add a button on General settings admin page to remove Adsense record from ads.txt file - Fix: Gutenberg blocks API Version 2 is deprecated since WP 6.9+, raise API to version 3 from version 6.9+ - Fix: Reduce database load on admin pages by caching ad, group, and placement list data across requests and deriving dropdowns and published-placement lookups from that shared cache - Fix: Improve ad load performance by skipping legacy meta migration when ad settings are already stored in the current format - Fix: Fix content ad output to apply responsive image and lazy-loading attributes using the current WordPress content filter API instead of deprecated functions - Fix: Improve group performance by caching each group's ad weight map for the duration of the request instead of rebuilding it on every access - Fix: Fix unsaved changes being cleared when reverting a single property on an ad, group, or placement in the editor - Fix: Fix visitor display conditions with chained OR and AND rules not evaluating correctly in some cases - Fix: Fix stale ad wrapper markup when layout options or wrapper ID and class are changed before the ad is saved - Fix: Improve weighted ad rotation performance in large groups by avoiding repeated weight recalculation during shuffle - Fix: Reduce database round-trips when loading multiple ads, groups, or placements during the same request = 2.0.22 (June 8, 2026) = - Improvement: Add compatibility check for setAccessible function on HideNoticesTest file, as it was deprecated - Fix: dismissed default notices are now permanently hide - Fix: Woocommerce plugin was injecting SQL on the WP Query of finding placements by type, suppress filters on query - Fix: Remove credentials check from fs_connect function when FS method is direct - Fix: Add safeguard on EDD Updater class if request data is not an object - Fix: Block injection ancestor search logic used str_starts_with, wont work with PHP less than 8, replaced by framework function - Fix: Add early bail for Ad Health if the top bar is hidden - Fix: Adding new ads to a group made the new ad status and name columns appear misaligned - Fix: Ad groups with four ads were not showing the show more button on groups page, wrong comparison math - Fix: All In One Video Gallery categories and tags are loaded as pages with shortcode instead of taxonomy, archive display conditions - Fix: parallax placement with published status checked - Fix: OceanWP theme product quick view conflict with GAdsense module AMP code injection on AJAX - Fix: block unterminated PHP in shortcode content overrides - Fix: Buttons, widget and notices UI style fixes for WP 7 plus = 2.0.21 (April 27, 2026) = - Fix: Ad label not applied to shortcode-rendered ads - Fix: fatal error by correcting Quick_Bulk_Edit class namespace - Fix: shortcode `ad_args` which allow remote code execution vulnerability = 2.0.20 (April 20, 2026) = - Fix: Content injection performance issues and handle more use cases = 2.0.19 (April 9, 2026) = - Improvement: Added AMP for WP Ads importer to improve ad migration accuracy - Improvement: Implemented upgrade notices from readme for new releases - Fix: support form submission issue = 2.0.18 (March 26, 2026) = - Feature: importer for Ads for WP to migrate ads, groups, placements and settings. - Improvement: Add Ad Inserter importer - Improvement: Replace WP-Cron with Action Scheduler for Ad Expiration - Improvement: Brave browser adblocker fallback ads were not triggered, Brave allows detection script through - Improvement: Test plugin compatibility with WordPress 6.9. - Improvement: Optimize ad rendering by replacing DOM parsing with native PHP regex processing - Improvement: Remove Amazon Integration banner from dashboard and disable PEF Module - Improvement: Add Ads, Placements, and Groups to Command Palette - Fix: fallback images show correctly based on user consent and non-personalized option - Fix: Fix nested rendering of sidebar and header placements by optimizing injection logic - Fix: Fix multiple WPML bugs, including disabling translations for groups, fix placements not showing translated ads and grous - Fix: Adds scheduled ads to the Gutenberg widget dropdown selector, if scheduled ad is selected, will only show when published - Fix: AMP - Responsive add-on license field not showing up on License Settings - Fix: Duplicated ads not showing on ad group when added via metabox, deleted ads not being cleared from group ad weights - Fix: Change the trigger logic of new placement modal when no placements, trigger hashchange event (on dialog-advads-modal.js) - Fix: Reword Advanced Ads notifications warning on Settings page, from errors to notifications - Fix: Remove Product Experimentation Module, Amazon banner from old support page - Fix: Resolved fatal error in Groups upgrade caused by namespace issue = 2.0.17 (February 3, 2026) = - Improvement: Added admin notice to warn when other ad-related plugins are active and may conflict with Advanced Ads - Fix: remove license key prompt for Slider add-on - Fix: clearfix checkbox saving and description alignment in the admin meta box - Fix: prevent removal of backslashes in ad code - Fix: screen options from Advanced Ads showing on other plugin’s pages - Fix: conflict with Fluent-SMTP plugin = 2.0.16 (December 30, 2025) = - Improvement: PHP 8+ compatibility for the ad expiration cron event - Improvement: security by allowing only valid sorting options when loading placements = 2.0.15 (December 25, 2025) = - Improvement: prevent any PHP execution in shortcode rendered ads to enhance security - Improvement: handle IP visitor condition by removing extra spaces and line breaks - Improvement: enhance security by permission check when updating placement item - Fix: show hierarchical groups metabox in edit ad page = 2.0.14 (November 18, 2025) = - Feature: pagination for Groups and Rotations - Fix: Groups page screen options spacing = 2.0.13 (October 20, 2025) = - Fix: Enhance protection against potential unauthorized access in certain frontend requests = 2.0.12 (September 23, 2025) = - Improvement: prevent quotation marks in ad codes being escaped with ACF enabled - Fix: groups now correctly inject ads in header placements - Fix: remove placements from WPML translation options = 2.0.11 (August 27, 2025) = - Fix: backslash disappears in ad code editor - Fix: deprecated parameters warning - Fix: avoid crash when restoring posts from other post types - Fix: extra whitespace being added before headings in rich-content editor - Fix: ads expiry date works as expected = 2.0.10 (July 28, 2025) = - Fix: add null check in display conditions - Fix: optimize ad handling and performance for MailPoet - Fix: restore placement in widget dropdown - Fix: resolve issue with ad blocker detection - Fix: save pagination display condition in placements - Fix: duplicate ad labels when using group as ad type - Fix: append ad to existing group when selecting placement from ad edit screen = 2.0.9 (May 21, 2025) = - Improvement: improve amp conditions - Improvement: Test plugin compatibility with WordPress 6.8. - Improvement: add capability check in importer - Improvement: standardize `ADVADS_ADS_DISABLED` check - Improvement: null checks before accessing ad properties - Fix: update failure help link only for Advanced Ads add-ons = 2.0.8 (April 28, 2025) = - Improvement: type safety in `add_body_class` to prevent issues from third-party filters - Improvement: improve the ad and group relation both way - Fix: expiry date not updating for ads that already had one set = 2.0.7 (April 9, 2025) = - Improvement: optimize MailPoet compatibility - Fix: force array return in post_updated_messages - Fix: quick edit for ads ignores tracking options and overwrites content = 2.0.6 (April 1, 2025) = - Improvement: redirect to placement list after creating a new placement - Improvement: remove ad creation message for server type placement - Improvement: unify admin notifications - Fix: prevent duplicate revision controls - Fix: correct order of placement icons - Fix: open create placement modal when no placements found - Fix: show the search field when "Show filters permanently" is checked - Fix: prevent CodeMirror to run on Rich Content ad edit page - Fix: prevent 'undefined key' warning in XML feed - Fix: use native php get error message function = 2.0.5 (March 20, 2025) = - Fix: prevent false unsaved changes notifications for ads - Fix: prevent errors with certain custom placement types - Fix: hide discarded notification on the Advanced Ads dashboard - Fix: prevent an error on the Advanced Ads dashboard - Fix: correct ad expiry date inconsistencies - Fix: prevent fatal error on Gutenberg editor - Fix: restore execute shortcode feature = 2.0.4 (March 18, 2025) = - Improvement: add update functionality to ensure receipt of premium updates - Fix: resolve a fatal error caused by an invalid license - Fix: prevent ad expiry from changing during save when timezone is not UTC - Fix: prevent unknown placement types from breaking the page - Fix: ensure "Execute Shortcodes" function is savable again - Fix: restore PeepSo placement compatibility for Advanced Ads 2.0 = 2.0.3 (March 12, 2025) = - Improvement: reflect placement status changes immediately in the placement list - Improvement: prevent plugin upgrade notice reappearing if already dismissed - Fix: ensure ad centers when selected - Fix: restore pagination functionality on ad list page = 2.0.2 (March 11, 2025) = - Fix: restore the classic Advanced Ads widget - Fix: resolve placement page issue with PHP > 8.0 = 2.0.1 (March 11, 2025) = - Improvement: reduce high CPU usage in the frontend - Fix: correct a fatal error from a function declared multiple times during activation - Fix: correct the version numbers in the rollback function dropdown - Fix: resolve a PHP warning in the backend when file_get_contents is disabled = 2.0.0 (March 10, 2025) = - Feature: introduce onboarding wizard - Feature: implement plugin importer - Feature: overhaul placement structure - Feature: add pause, duplicate, and rename functions for placements - Feature: enable quick & bulk edit for ads and placements - Feature: option to hide ads for specific IP addresses - Feature: allow saving of custom filter sets - Feature: introduce rollback feature for version control - Improvement: expand ad filtering options - Improvement: add group type filter - Improvement: introduce ‘used by’ column in ad overview - Improvement: enable ad label overrides at ad level with basic HTML support - Improvement: enhance UI for clarity, better labels, more sortable columns, and reactive screens - Improvement: update Advanced Ads Dashboard - Improvement: display hints for dependent settings like cache busting or ad blocker disguise - Improvement: add quick & bulk edit for disabling ads on posts/pages - Improvement: optimize backend performance, load files only as needed = 1.56.3 (February 25, 2025) = - Fix: prevent an 'undefined constant' error in PHP versions prior to PHP 8 = 1.56.2 (February 19, 2025) = - Fix: resolve an issue occurring when setting an expiration date - Fix: update the licence status of premium plugins correctly = 1.56.1 (November 22, 2024) = - Fix: prevent some PHP notices with PHP 8.2 = 1.56.0 (November 13, 2024) = - Improvement: optimize code structure slightly for better performance - Improvement: enhance PubGuru one click integration = 1.55.0 (October 16, 2024) = - Improvement: add manual links to some settings - Improvement: enhance PubGuru one click integration - Fix: correct an issue with repeating ads before a heading = 1.54.1 (September 3, 2024) = - Fix: resolve a JavaScript issue on Google AdSense and Ad Manager pages = 1.54.0 (September 2, 2024) = - Improvement: enhance PubGuru one click integration - Fix: prevent PHP warning when using ad debug - Fix: readd drafted ads to group statistics on the statistic page - Fix: resolve issue with ad blocker detection = 1.53.2 (August 13, 2024) = - Fix: ensure content from a group shows in all content placements = 1.53.1 (August 13, 2024) = - Fix: resolve issue with deleting data on uninstall - Fix: resolve JavaScript error when uninstall = 1.53.0 (August 6, 2024) = - Improvement: add quick & bulk edit for "disable" ads on post/pages - Fix: correct handling of conditions array when no conditions are set for an ad - Fix: add drafted ads to group statistics on the statistic page = 1.52.4 (June 27, 2024) = - Fix: replace forgotten instances of a JS variable that caused an error = 1.52.3 (May 14, 2024) = - Fix: remove a PHP warning in Gutenberg block = 1.52.2 (May 6, 2024) = - Fix: enhance data handling in Gutenberg block module for improved security - Fix: replace function 'maybe_unserialize' with a more secure custom function = 1.52.1 (April 4, 2024) = - Fix: resolve issue with saving group weight = 1.52.0 (April 3, 2024) = - Improvement: bump 'Tested up to' version to 6.5 - Improvement: add status icon for ads in group modal = 1.51.3 (March 20, 2024) = - Fix: prevent weight reset to 0 for resaved scheduled ads - Fix: correct issue with AdSense metabox on ad edit page = 1.51.2 (March 13, 2024) = - Improvement: enhance compatibility with PHP 8.3 - Fix: resolve smaller style issues on the dashboard page - Fix: resolve an issue preventing the deletion of groups - Fix: correct an issue where saving in Gutenberg occasionally caused an error = 1.51.1 (February 29, 2024) = - Fix: resolve an issue that prevents delete links from working = 1.51.0 (February 27, 2024) = - Feature: add an integration for PubGuru® - Improvement: add AdSense widget on WordPress dashboard - Fix: rename Advanced Ads widget on WordPress dashboard - Fix: refresh group page after deleting or creating a group = 1.50.0 (February 13, 2024) = - Improvement: add text flow option to the Gutenberg block - Improvement: add size option to the Gutenberg block = 1.49.0 (January 31, 2024) = - Improvement: enhance ad blocker detection to identify more ad blockers reliably - Improvement: remove universal analytics description - Fix: allow content age display condition to work with AJAX cache busting - Fix: show search bar for author if max terms reach the limit - Fix: prevent a fatal error on the ad edit page related to Display Conditions = 1.48.1 (December 6, 2023) = - Fix: prevent ad weight from always showing 10 = 1.48.0 (December 5, 2023) = - Improvement: show Google Ad Manager debug link in Ad Health even when only a head tag exists - Improvement: add arrows to jump through highlighted ads - Improvement: link ads in the group modal - Improvement: update the plugin list and its descriptions on the dashboard - Improvement: add correct jumping through highlighted AdSense ads - Fix: ensure ads without a stored ad weight in the database are displayed on the group page - Fix: show the tooltip with placement and ad names only when 'highlight ads' is enabled = 1.47.5 (November 13, 2023) = - Fix: resolve issues with displayed ads on the group page - Fix: prevent a fatal error on the placement page when there are placements without a type = 1.47.4 (November 8, 2023) = - Fix: prevent fatal error that occurred on WordPress versions below 5.5 - Fix: correct group link on placement page - Fix: show missing ads on the group page - Fix: prevent fatal error on placements page with PHP version PHP 8 and higher = 1.47.3 (October 30, 2023) = - Fix: replace deprecated functions and constants - Fix: remove deprecated folder = 1.47.2 (October 26, 2023) = - Fix: prevent fatal error in some cases on local sites - Fix: show missing groups on group list page = 1.47.1 (October 26, 2023) = - Fix: prevent fatal error on the Widgets page = 1.47.0 (October 25, 2023) = - Improvement: show hints when ads are disabled for specific post types - Improvement: optimize loading times throughout the plugin to enhance overall performance - Improvement: enhance Ad Health features with ad count display, toggleable ad highlighting, and informative tooltips for ads and placements - Fix: remove AdSense 'ads limit' deprecated feature - Fix: correct an inaccurate display of the targeting box in the wizard - Fix: display a notification for groups that was accidentally hidden - Fix: update complianz 6.0.0 deprecated filter cmplz_script_class replaced with cmplz_service_category - Fix: prevent an error message when using invalid CSS in placements Inline CSS field = 1.46.0 (August 17, 2023) = - Feature: add a direct link to view the ad when a new ad is published - Improvement: use adsense ad unit title in adsense earnings metabox - Fix: add an "aria-label" attribute to link tags which contain images - Fix: add a new Translation promo class, which prevents PHP deprecation notices - Fix: prevent deprecation warnings in PHP 8.2 - Fix: remove unused AMP code that in some cases threw a PHP error - Fix: exchange 'wp_img_tag_add_loading_attr' function, which was deprecated in WordPress 6.3, with 'wp_img_tag_add_loading_optimization_attrs' = 1.45.1 (August 4, 2023) = - Improvement: add a button to create ads on the groups page if no ads exist - Fix: replace deprecated methods `intval()` and `strval()`, with type-casting - Fix: add a deprecation notice for the 'disable top anchor Auto ads' feature, since it's no longer supported by AdSense - Fix: remove flickering while hiding ads on the group page - Fix: remove a bug when sorting ads by date = 1.45.0 (July 26, 2023) = - Feature: add a sortable date column to the ad list - Fix: hide filter button in ad list if no results found - Fix: remove ad blocker assets when uninstalling the plugin - Fix: prevent PHP notices on the placements page with PHP 8.1 - Fix: remove "Up to 1 ad displayed." on the group page when only one ad is displayed. - Fix: prevent PHP deprecation notices with PHP 8.1 = 1.44.1 (June 28, 2023) = - Fix: ensure cached ads are in fact an array = 1.44.0 (May 31, 2023) = - Improvement: combine condition meta boxes into 'Targeting' = 1.43.0 (May 17, 2023) = - Improvement: move schedule information about ads in groups into a tooltip - Fix: prevent multiple device conditions on placements not working together - Fix: prevent a PHP notice that occurred in connection with display conditions = 1.42.2 (April 26, 2023) = - Improvement: remove unused frontend notices code - Improvement: remove ad injection log due to more false positives than actual issues - Fix: prevent a warning when third-party scripts are registered without a source = 1.42.1 (April 12, 2023) = - Improvement: add dismiss buttons to Google AdSense account alerts in the backend - Improvement: add JS event on showing a modal - Fix: prevent a termination notification after activating a valid licence - Fix: remove a bug that prevented the modal from closing - Fix: prevent group modal from opening again after saving = 1.42.0 (March 29, 2023) = - Improvement: enhance WP Admin performance by minimizing Advanced_Ads_Ad objects - Improvement: open the group edit form after creating a new group - Improvement: unify checkbox text layout on general settings page - Fix: show values in the Ad injection column in the Pages overview = 1.41.0 (March 14, 2023) = - Improvement: filter post and pages with disabled ads in the backend - Improvement: improve the main description of ad groups and placements - Fix: update logic in placements to ensure the selected item exists in the list of available items - Fix: prevent infinite loop when ad author was deleted from database = 1.40.2 (February 22, 2023) = - Fix: allow closing of modals that are not associated with a form - Fix: show tab content after submitting settings page = 1.40.1 (February 14, 2023) = - Fix: correct issue on settings page that prevented changing tabs = 1.40.0 (February 14, 2023) = - Improvement: add termination notices to Advanced Ads screens - Improvement: update the device condition to include "tablet" devices - Improvement: unify the page descriptions of the group and placement lists - Improvement: enable back/forward navigation in the settings page - Fix: unset `fields` query argument when requesting ad groups - Fix: fix ordered ad groups with ads set to display only once - Fix: prevent a PHP error when saving placements - Fix: re-add erroneously removed groups filter on Ad overview = 1.39.2 (January 26, 2023) = - Fix: improve privacy cookie regex matching against common values - Fix: prevent deprecation notice on `ArrayObject::getOffset` in PHP 8.1+ = 1.39.1 (December 19, 2022) = - Fix: check the validity of the form before saving the modal - Fix: correct "Show Usage" modal on placements page = 1.39.0 (December 14, 2022) = - Improvement: add PeepSo ad type image - Improvement: add fallback ad type image for unknown ad types - Fix: remove unused jQuery UI assets - Fix: prevent uncaught `TypeError` on Placements search - Fix: add the site URL to the export filename - Fix: prevent duplicate queries due to circular functions calls in capability checks = 1.38.0 (November 22, 2022) = - Improvement: add support for multibyte cookies in "advads.get/set_cookie" functions - Improvement: update routine to remove all data on uninstall - Improvement: unify the behavior and look of the group and placement lists - Fix: serialize post meta in conditions to do string comparisons - Fix: ensure the filters for placements work = 1.37.2 (November 2, 2022) = - Improvement: add manual links to display and visitor conditions - Improvement: sanitize the frontend prefix according to W3C valid class names - Improvement: update Black Friday / Cyber Monday promotion - Fix: remove the ad width and height before saving for responsive AdSense ads = 1.37.1 (October 25, 2022) = - Improvement: align the ad image preview in the Ad Parameters with other options - Improvement: order ads on the groups page by weight first and then by ad title - Fix: remove superfluous output above hints about cache-busting - Fix: ensure "Expired" and "Expiring" view stay active, when posts list is filtered or searched - Fix: allow saving an ad with an invalid user if the user was already the author of this ad - Fix: show a notice if positioning is used with responsive AdSense ads = 1.37.0 (October 11, 2022) = - Feature: bump minimum required PHP version to 7.2 - Improvement: cleanup of the header items on list pages in the admin and unified layout elements - Improvement: show filters and search options on the ad, group, and placement list pages with the new Filters button in the page header - Improvement: show filters on the ad overview list permanently using the new Show Filters Permanently screen option - Improvement: unify the links and buttons in the header of admin pages related to Advanced Ads - Improvement: show the bulk options only when items in the ad list are selected - Improvement: hide the following columns on the ad list view by default: notes, size, author - Improvement: remove the background color for some ad status, like draft - Improvement: add a new "Type" column to the beginning of the ad list with a tooltip with more details - Improvement: add a new "Size" column for the ad size only - Improvement: add a "Notes" column for the ad description - Improvement: rename the "Title" Column into "Name" - Improvement: rename the Ad Details column into "Preview", showing only image ad previews - Improvement: search ad by post ID on the ad overview page - Fix: "All" view on the ad list not highlighted - Fix: show proper message for empty AdSense account - Fix: prevent undefined index notice on Ad Blocker setting in multisite = 1.36.3 (September 30, 2022) = - Fix: getting values for container ID and class = 1.36.2 (September 29, 2022) = - Fix: ensure well formed positioning array = 1.36.1 (September 29, 2022) = - Fix: centering for dummy and image ads - Fix: positioning migration if ads are centered - Fix: remove additional clearfix `br` if ad is centered = 1.36.0 (September 27, 2022) = - Feature: add a Usage box to the ad edit screen with notes, shortcode and PHP function information - Improvement: move the 'create a placement' form into a modal - Improvement: reset certain features with URL parameters - Improvement: sanitize the positioning options and make the margin inputs more user-friendly - Improvement: show helpful hints about displaying ad groups using cache busting - Improvement: unify the layout of outgoing links that lead to the Advanced Ads manual or another external source - Fix: clear ad sizes when an AdSense ad is to be responsive - Fix: correct order of placements on the Placement page - Fix: ensure admins can edit an ad, even if the original author can't anymore - Fix: hook into the current `WP_Query` instead of setting `$_GET` parameters to order the ad list = 1.35.1 (August 22, 2022) = - Fix: ensure administrators can edit all plain text ads on single site installs - Fix: ensure administrators can edit plain text ads on single site installs created by a now-deleted user = 1.35.0 (August 9, 2022) = - Improvement: remove frontend picker functionality from the frontend `advanced.js` JavaScript file - Improvement: save the Advanced Ads version as postmeta when saving an ad - Fix: make AdSense ad unit list ordering case-insensitive - Fix: hide widget types that should not be offered by the Legacy Widget block - Fix: respect unfiltered_html capabilities and constant for plain text ads = 1.34.0 (May 24, 2022) = - Improvement: add a nofollow attribute to the manual link in the ad debug output - Improvement: add `advanced-ads-group-displayed-ad-count` filter to allow add-ons to show the right amount of displayed ads on the group screen - Improvement: add authors for ads - Improvement: always register the Advanced JavaScript file - Fix: prevent possible PHP error happening when using UpSolution Core plugin - Fix: display link to AdSense account that contains warnings correctly - Fix: restore the group search form - Fix: ensure that the AdSense revenues can be shown separately by domain on the Advanced Ads dashboard = 1.33.2 (April 21, 2022) = - Fix: disable external XML entity loading only when libxml is less than 2.9.0 - Fix: correct Composer autoloader for PHP 5.6 = 1.33.1 (April 11, 2022) = - Fix: rename remaining instances of "Matched Content" AdSense ad type to "Multiplex" = 1.33.0 = - Improvement: introduce new header on plugin-related pages in WP Admin - Improvement: better highlight selected condition options - Improvement: prevent admin notices from jumping on Advanced Ads pages - Improvement: consistently call the overview page "Dashboard" in the page title and menu - Fix: remove default "Visibility" setting from ad edit page to avoid confusion = 1.32.0 = - Improvement: load display/visitor conditions automatically after selecting them - Fix: prevent undefined index notice in display conditions - Fix: accommodate for deprecation in WP_User_Query in WordPress 5.9.0 - Fix: prevent tooltips from flowing out of right edge of viewport - Fix: correct ad list counter for expiring ads - Fix: prevent creating unneeded group wrapper around Advanced Ads block - Fix: escape the ad title on groups screen to prevent authenticated XSS - Fix: prevent authenticated XSS in plain text ads if `DISALLOW_UNFILTERED_HTML` is set - Fix: prevent authenticated RCE in plain text ads if `DISALLOW_FILE_EDIT` is set - Fix: rename "Responsive (Matched Content)" AdSense ad type to "Multiplex ads" = 1.31.1 = - Fix: show ad edit button when Advanced Ads block is used - Fix: revert regression from expired view when filtering by weekday = 1.31.0 = - Feature: add "Expired" and "Expiring" views to the ad overview list replacing the expiry date filter - Improvement: use "saved" dashicon when an element was saved correctly or a process finished - Improvement: don't report HTML5 tags or custom elements as invalid tags in custom ad content - Improvement: optimize warnings from AdSense account and clarify that these warnings are not from Advanced Ads - Improvement: separate `inject_in_content` code into class `Advanced_Ads_In_Content_Injector` - Improvement: update video manual display conditions = 1.30.5 = - Fix: correct ad weight calculation if ad count in group is retained but ad ids change = 1.30.4 = - Fix: prevent overriding of ads' weight `0` in ad groups = 1.30.3 = - Fix: properly output HTML attributes for TCF 2.0 script tag - Fix: centralize and normalize Ad Group weight calculation - Fix: escape closing HTML tags for ads injected into main content which use document.write - Fix: add CSS class for hidden elements on medium and wider screens = 1.30.2 = - Improvement: hide feedback form when the plugin is disabled multiple times without feedback - Fix: prevent applying array functions to boolean in `Advanced_Ads_Group` - Fix: add default weight for ads added to groups via the ad edit screen = 1.30.1 = - Fix: copy missing `composer/platform_check.php` = 1.30.0 = - Improvement: add `advanced-ads-group-taxonomy-params` filter to change ad group taxonomy parameters - Improvement: add "Manual Placements" to the Advanced Ads block and sidebar widget - Improvement: update Black Friday promotion - Fix: enable `Ad Admin` and `Ad Manager` to assign ads to groups from ad edit page and quick edit view - Fix: disable unavailable ad types on the ad edit page - Fix: improve AdSense auto ads code warning on ad edit page - Fix: handle AdSense report API response for accounts without earnings - Fix: remove `amp-auto-ads` element on non-AMP URLs - Fix: honor disabling ads settings for AMP pages - Fix: escape placement selectors for jQuery to allow adding conditions to multibyte placement names - Fix: ensure correct text domain for translations - Fix: make the ad list sortable in descending order - Fix: remove hard-coded `orderby` and `order` for posts list - Fix: prevent updating ad weights of non-published ads - Fix: correct Display Conditions meta box video player - Fix: remove escaped HTML tags in new placement form - Fix: resolve a conflict with WPML where conditions were not displayed correctly on the placement page - Fix: move placement of the ad blocker disguise settings = 1.29.1 = - Fix: ensure `Advanced_Ads_Adsense_Report_Helper` JavaScript global is defined - Fix: hide AdSense setting submit button if there is no publisher ID - Fix: show error message when no AdSense account data found = 1.29.0 = - Improvement: update AdSense API to V2 - Improvement: unify layout of backend notices - Improvement: move some descriptions into tooltips - Improvement: move ad blocker fix options to the related setting - Fix: correct uppercase CSS rule for labels in backend - Fix: remove usage link for every type except manual placement - Fix: correct sorting of placements by type on placement list page - Fix: bad language in Analytics Adblock Counter option = 1.28.0 = - Improvement: add an `inline` attribute to the `the_ad` shortcode that allows the user to change the wrapper from `div` to `span` - Improvement: update plugin updater class - Improvement: rename "Item" option into "Ad / Group" to clarify its purpose - Improvement: show a link to create a new ad on the placement page - Improvement: show content placements first when creating a new one - Improvement: remove welcome panel on ad edit screen - Improvement: rename last button in the wizard to "Save" to highlight that this is the last step - Fix: wrap `advanced_ads_ready_queue` in an IIEF to prevent naming collisions = 1.27.0 = - Improvement: prevent issues with functionality from other plugins that delay JavaScript execution (WP Rocket, Complianz, et al.). - Improvement: unify the layout of the Next buttons in the ad Wizard - Improvement: add the updated AdSense code. Added a filter to continue using the old AdSense code. [Learn more](https://wpadvancedads.com/adsense-crossorigin-attribute-performance) - Improvement: update Ad Block Counter to work with Google Analytics 4 properties - Fix: ensure Ad Admin can save AdSense, Privacy, and License settings - Fix: prevent error when "Remove data on uninstall" option is set due to uninitialised constants - Fix: ad edit button for ads delivered using groups - Fix: improve compatibility with PHP 8 by removing default values from required function parameters = 1.26.0 = - overwrite existing options when importing new options - add possibility to export privacy, ads.txt and Google AdSense options - remove duplicate inline styles for placements with passive cache-busting and activated TCF 2.0 privacy option - adjust the Advanced Ads block layout to the default WordPress block layout - add migration from Advanced Ads widget to Advanced Ads block - fix saving of additional CSS class in Advanced Ads block - make placement deletion confirmation dialogue translatable - add WebP as allowed image media type for exports = 1.25.1 = - fixed a bug that prevented removing placement conditions - trim `inline-css` to remove duplicate spaces - check if `inline-css` index exists in ad options to prevent undefined index notice - move `Advanced_Ads_Inline_Css` class from singleton to one instance per ad, to fix issues with `inline-css` not being added - fixed ad edit button visibility in frontend when ad label was activated = 1.25.0 = - show ad label event when ad wrapper is now shown - add filter `advanced-ads-ajax-ad-select-arguments` to modify arguments of AJAX ad selection - display ads on BuddyPress pages when no ads allowed on 404 pages - Ad blocker fix: do not copy assets from "vendor" and "lib" folders - Ad blocker fix: compare assets based on `filemtime` instead of `filesize` - bump minimal require WP core version to 4.9 - allow to add a replacement for AdSense page-level code = 1.24.2 = - fix authenticated (i.e. logged-in) DOM-based XSS vulnerability while creating jQuery object from user input in Safari and IE = 1.24.1 = - fix compatibilty with WP prior to 5.0 = 1.24.0 = - AdSense deprecated Link Units and might no longer fill them. So we removed them when creating new ads. [Learn more](https://wpadvancedads.com/adsense-link-units/) - enable AdSense Auto ads on AMP pages - interpret WP blocks in the plain text ad type - remove MailPoet warning since they are not retiring custom shortcodes after all - convert jQuery shorthand functions to `.on()` and `.trigger()` - made shortcode button work with WordPress 4.9 - allow to exclude conditions from the "new display condition" dropdown - prevent AdSense earnings box from appearing on non AdSense ad page when AdSense connection is lost = 1.23.2 = - reverted erroneously removing plugin author index = 1.23.1 = - removed warning about iThemes Security since it is no longer causing the reported issue - added correct icon to Advanced Ads block - fixed escaping for AdSense Auto ads codes that use the deprecated "Disable Top Level" option - fixed TinyMCE warning in dev console - replaced `intval()` and `floatval()` with type-casting = 1.23.0 = - MailPoet is going to deprecate custom shortcodes. See [this section](https://wpadvancedads.com/mailpoet-newsletters/#Enable_MailPoet_support_in_Advanced_Ads) in case you are using Advanced Ads ads in your newsletters - updated Google AdSense API to use web application verification - prevent accidental public ad URLs. See [Making the Ads post type public](https://wpadvancedads.com/manual/making-the-ad-post-type-public/) if you want to query ads via a dedicated URL - allow to reserve only width or height for plain, rich content and group ad types = 1.22.2 = - fix shortcode button within Classic editor and Classic editor block = 1.22.1 = - removed "Disable shortcode button" setting after it became obsolete in 1.22.0 - added the `advanced-ads-disable-shortcode-button` filter to disable the shortcode button - removed ads.txt-related warnings when the option is disabled - fixed issue with loading of shortcode button in editors that disabled custom buttons, e.g., Elementor - fixed JavaScript warnings in Elementor editor = 1.22.0 = - made dashboard layout compatible with WordPress 5.6 - removed irrelevant AdSense warnings - allow filtering of data-attributes for encoded ads if privacy module is enabled - added `advanced-ads-ad-edit-show-placement-injection` filter to allow removing the placement-injection box on the ad edit screen - added `advanced-ads-unhide-meta-boxes` filter to allow adding of meta box ids that should always be visible on ad edit pages - added `advanced-ads-ad-option-{$field}` filter for ad options - added action hooks for ad status changes: `advanced-ads-ad-status-published`, `advanced-ads-ad-status-unpublished`, `advanced-ads-ad-status-{$old_status}-to-{$new_status}` - removed public URLs for single ads on some installations - fixed old icon in the menu - fixed Internet Explorer 11 incompatibility - fixed possible error in TinyMCE editor caused by ad blockers = 1.21.1 = - fixed pagination on the ad list page - fix Google AdSense non-personalized ads = 1.21.0 = - enable Position options for Sidebar placements - increased default weight for ads imported to a group from 1 to 5 which is mostly relevant when selling ads to existing placements - Ad Health: added body classes that explain plugin behavior at given moment - ads.txt: prevented converting special characters into HTML entities - show ad overview list even if all ads were moved to trash - fixed error when specific ACF function does not exist - fixed option to disable ads also on the "Posts page" as set in the WordPress Reading settings = 1.20.3 = - whitelist field groups created by Advanced Custom Fields on the ad edit page - prevent including AdSense Auto ads code when the Borlabs Cookie is already adding it - prevented adding unneeded escape characters to ads.txt file - added compatibility with Funding Choices when consent is not needed = 1.20.2 = - fixed displaying image ads if privacy method is set to custom cookie - fixed scroll to last edited placement with non-English letters - fixed minor UI issues = 1.20.1 = - don't escape top anchor ads code as a whole, user input has already been escaped = 1.20.0 = - integrate with TCF 2.0 compatible consent management platforms, e.g., Quantcast Choices - improve timezone methods `Advanced_Ads_Utils::get_wp_timezone()` and `Advanced_Ads_Utils::get_timezone_name()` - Divi theme: made content injection work with the "Unlimited ad injection" setting disabled - added missing spaces to image ad tags to fix Cache-Busting issue - made ad centering work when right and left margin are set - add ad health check if __tcfapi responds but the privacy module is either not enabled or not set to TCF 2.0 - remove duplicate lines from the ads.txt file - fixed layout issues that happens due to the JNews theme = 1.19.1 = - apply WordPress lazy loading for images to images in ad content - layout fixes for WordPress 5.5 = 1.19.0 = - placements are now ordered by type on the Placements page. You can still choose ordering by name - the "custom" option of the Content placement now comes with a picker to select the position in the frontend - WPML: placements pages show ads according to the selected language - WPML: display the ad in the original language if a translated ad is missing unless the publisher chooses to hide it instead - prevented injection of ads into captions of "image" blocks - improved bot check - fixed layout of expiry data fields - fixed broken check for the Responsive add-on = 1.18.0 = * inject ads automatically based on div, table, quotes, iframe, and other HTML tags * define your own injection rules using the new "custom" option for the Content placement * hide Shortcode button in TinyMCE editor by default for new users * added `advanced-ads-options` filter for main plugin options * prevent automatic ad injection into paragraphs within blockquotes * hide placement options after publishing an ad translated with WPML * disallowed ad insertion into the header of the WP File Manager's admin page = 1.17.12 = * set default name for ads where none was given * fixed issue where long option markup could break the group page * made placements of type other than "Header Code" work with "Thrive Theme Builder" theme = 1.17.11 = * added Datanyze and Ecosia to bots list * linked to [Google Ad Manager Integration](https://wpadvancedads.com/add-ons/google-ad-manager/) * fixed Layout Key field for AdSense ads not saving new values * fixed error that broke the wizard when the URL field of image ads contained a wrong value * fixed links to manuals * fixed unneeded notification shown when ads are disabled on 404 pages = 1.17.10 = * fixed escaped HTML tag in Ad Planning column * fixed possible JavaScript error caused by Ad Health checks * fixed possible third-party conflict causing the ad group filter to throw an exception * removed unneeded notification shown when ads are disabled on 404 pages = 1.17.9 = * fixed warning about missing `the_content` filter in WordPress 5.4 * fixed public warning if the WordPres `widget` function is called with wrong parameters * fixed wrong usage of get_current_user = 1.17.8 = * WPML: placements now deliver also ads translated with WPML when only one of the language versions was assigned to them * fixed delete option in placement form = 1.17.7 = * fixed index value of content placements not showing up in the form while saved and working correctly * recovered compatibility with the "Render Blocking JS" option of the WP Fastest Cache plugin = 1.17.6 = * improved coding style in backend templates * prepared for option to allow minimum number of words between ads in Advanced Ads Pro * hide notice that warns if the "Disable ads in REST API" option was selected * Renad theme: fixed a bug that caused menu item to point to incorrect url instead of theme options = 1.17.5 = * fixed ads being injected multiple times when using the Newspaper theme or multiple the_content filters = 1.17.4 = * added option and Display Condition to disable ads in content served through the REST API * made error notices less obstrusive * code style optimizations * fixed ad groups form on ad edit page * fixed potential conflict with autoloader = 1.17.3 = * prevented content injection into specific elements where ads cause issues * assign `advads-stop-injection` class to any element into which you don’t want to automatically inject ads * fixed possible cURL error when checking existing ads.txt file locally = 1.17.2 = * replaced autoloader * fixed an issue where an expired ad removed HTML in the ad code = 1.17.1 = * fixed failing upload of new image ads * fixed Google Ad Manager debug link also showing up when other Google Publisher Tags are used = 1.17 = * improved AdSense ad unit list coming from the AdSense API * improved "highlight ads" option in Ad Health * show notice if AJAX calls are broken * added `com.pl` as exception for placing ads.txt files in subdomains * removed placeholder for AdSense ads in the Customizer and Elementor editor * fix for WP Smush lazy load preventing image ads from showing at all = 1.16.1 = * fixed JavaScript that broke privacy module check in the frontend * allow to change size of AdSense ads loaded from the AdSense account = 1.16 = * moved all users to the new content injection logic and removed opt-out option * use new Auto ads code for everyone who didn’t enable the "Disable top anchor ads" option * hide "Disable top anchor ads" option to users who didn’t enable it * the Ad Admin user role can now also save the plugin settings * hide Wizard for existing ads * removed warning about WP Autoterms plugin after a fix by the plugin authors * some work for Conditions to improve compatibility with an upcoming Pro feature * fixed multiple wrappers occurred as result of using nested ads * fixed missing index issue on 404 pages for logged-in admins * fixed AJAX/PHP error 403 on Settings page * fixed layout issue that happened when "If>So Dynamic Content" plugin was active * prevented Ad label from taking height of fixed sized AdSense ads