== Changelog ==

= 1.6.5 =
* Added a one-line pointer to the Pro add-on on this plugin's own Settings → AI Flag screen, plus a dismissible notice there (nowhere else) for anyone who hasn't seen it yet. Purely informational; nothing in this plugin depends on the add-on or is restricted without it. Hidden automatically once the Pro add-on is installed and active.

= 1.6.4 =
* Give the document-level disclosure a 300px-wide slot so hover text next to the label can wrap at a readable width instead of the icon.

= 1.6.3 =
* Scan the full page through WordPress 6.9's template enhancement output buffer instead of leaving a plugin-owned ob_start() open until shutdown.

= 1.6.2 =
* Sanitize badge and disclosure markup returned from filters with wp_kses before it is printed on the_content and render_block.
* Sanitize lightbox badge HTML after the aicft_lightbox_config filter, and encode the inline script payload so it cannot break out of a script tag.
* Escape the media-library field label, help text, and HTML that WordPress prints from attachment_fields_to_edit.

= 1.6.1 =
* Removed the code for the custom text badge, badge colors and corner, tooltips and their sentences, extra content types, and the Polylang/WPML string registration. None of it was reachable from this plugin's own screen; the separately distributed add-on now implements those features itself.
* Labels are the official EU icon plus an accessible name. There is no tooltip code in this plugin any more.
* Added the aicft_badge_html and aicft_disclosure_html filters so add-ons can replace the label markup, and removed the add-on pointer from the settings screen.

= 1.6.0 =
* Renamed to Grafiduo AI Content Flag (slug: grafiduo-ai-content-flag) at the Plugins Team's request, for a more distinctive name.
* Fixed the Plugin URI, which pointed at a page that no longer resolves.
* Stopped bundling compiled translation files; the plugin relies on translate.wordpress.org and no longer calls load_plugin_textdomain().

= 1.5.1 =
* Stop parsing the whole page with DOMDocument when injecting badges. Markup is now updated with targeted replacements, so inline scripts, styles, and HTML5 templates are left intact.
* Resolve labelled media from the cached index instead of querying post meta for every image. Unlabelled archives no longer pay a database round-trip per thumbnail.
* Prime the post-meta cache when the index is first built, and store only filenames in the index and the lightbox payload.
* Skip block and content filters while the page buffer is running, exclude feeds from decoration, and flush the index when attachment image sizes are regenerated.

= 1.5.0 =
* First release in the WordPress.org plugin directory: manual AI labelling for images, video, posts and pages, with the official European Commission icons.
