From fe4af85929277898ffc4c0bc7700cd4d488279de Mon Sep 17 00:00:00 2001 From: Javier Casares Date: Wed, 4 Nov 2026 18:53:49 +0000 Subject: [PATCH] v1.9.1 --- changelog.txt | 34 +++++++++++++++++++++++++++++ includes/Core/Plugin.php | 4 ++-- includes/Network/Plugin.php | 4 ++-- readme.txt | 29 +++++++++++------------- robotstxt-mediaaudit.php | 22 ++++++++++++++----- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 8 +++---- vendor/composer/autoload_static.php | 8 +++---- vendor/composer/platform_check.php | 4 ++-- 9 files changed, 79 insertions(+), 36 deletions(-) diff --git a/changelog.txt b/changelog.txt index 9974e95..8d328bc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,39 @@ == Changelog == += 1.9.1 = + +_Release date: 2026-11-04_ + +**Highlights** + +* Compatibility window raised to WordPress 7.0 - 7.2 and PHP 8.3 - 8.6, verified with PHPCompatibility, wp-compat, and live testing on WordPress 7.2-beta4 / PHP 8.6.0RC3. + +**Changed** + +* Minimum supported versions raised: WordPress 7.0 (was 5.3) and PHP 8.3 (was 8.0). `Requires at least`, `Tested up to`, and `Requires PHP` updated in the plugin header and readme.txt; `phpcs.xml` scans the new range (`testVersion 8.3-8.6`, `minimum_supported_wp_version 7.0`); composer.json now requires PHP >= 8.3; `bin/preflight.sh` PHPCompatibility fallback range updated to 8.3-8.6. +* Tested up to WordPress 7.2 (validated on WordPress 7.2-beta4, single site, PHP 8.6.0RC3) and up to PHP 8.6 (PHPCompatibility scan clean on 8.6; runtime validated on 8.6.0RC3). +* Real code floors from the compatibility tests, for the record: the full-range PHPCompatibility scan (5.6-8.6) reports zero errors from PHP 7.4 upwards, and wp-compat reports no WordPress API newer than 5.3 in use — the declared 7.0/8.3 minimums reflect the project support policy (latest WordPress release plus the two previous majors), not a code limitation. +* Admin menu icon (site admin and network admin) switched from the `dashicons-camera` font glyph to an SVG icon shipped as a base64 `data:image/svg+xml` URI — the same camera glyph extracted from the WordPress 7.2 dashicons sprite, so the icon looks identical but renders crisp at any DPI. Data-URI SVG menu icons are supported by every WordPress version in the support window, unlike the `wp_get_icon()` inline SVG API introduced in WordPress 7.2 ([wordpress-develop #12270](https://github.com/WordPress/wordpress-develop/pull/12270)); verified against the menu icon rendering code of 7.2-beta4. +* Dev tooling refreshed via `composer update`: PHPStan 2.2.8 -> 2.3.5, wp-compat 1.5.0 -> 3.0.1, wordpress-stubs 6.9.4 -> 7.1.2, PHPUnit 9.6.36 -> 9.6.38, phpstan-wordpress 2.0.3 -> 2.0.4, wp-hooks/wordpress-core 1.12.0 -> 1.13.0, nikic/php-parser 5.8.0 -> 5.9.0. No production dependency changes (Action Scheduler remains 3.9.3; its `Requires at least: 6.5` header caveat re-verified — no WP-version runtime gate at 3.9.3). + +**Added** + +* PHPStan level documented at 9 — the maximum analysis level the codebase passes with zero errors and no baseline (level 10 reports 536 errors, dominated by strict `mixed` handling of `global $wpdb`; the upgrade path is tracked in `docs/ROADMAP.md`). The `ROBOTSTXT_MEDIAAUDIT_MENU_ICON` constant is covered by the PHPStan plugin-constant stubs. + +**Compatibility** + +* WordPress: 7.0 - 7.2 (tested on 7.2-beta4) +* PHP: 8.3 - 8.6 (tested on 8.6.0RC3; scan-verified code floor: 7.4) +* WP-CLI: 2.x +* MariaDB: 11.4 or newer (unchanged) + +**Tests** + +* PHP Coding Standards (PHPCompatibility): 8.3 - 8.6, 0 errors; full-range 5.6 - 8.6 scan run to establish the real code floor (7.4) +* WordPress Coding Standards (WPCS): 0 errors +* PHPStan 2.3.5: level 9, 0 errors, no baseline +* PHPUnit: 12 tests, 55 assertions (plugin header tests included) + = 1.9.0 = _Release date: 2026-08-24_ diff --git a/includes/Core/Plugin.php b/includes/Core/Plugin.php index a5105d5..6e8df14 100644 --- a/includes/Core/Plugin.php +++ b/includes/Core/Plugin.php @@ -128,7 +128,7 @@ class Plugin { 'edit_others_posts', 'robotstxt-mediaaudit', array( $this, 'render_central_mode_notice' ), - 'dashicons-camera', + ROBOTSTXT_MEDIAAUDIT_MENU_ICON, 11 ); return; @@ -140,7 +140,7 @@ class Plugin { 'edit_others_posts', 'robotstxt-mediaaudit', array( $this->audit_page, 'render' ), - 'dashicons-camera', + ROBOTSTXT_MEDIAAUDIT_MENU_ICON, 11 ); diff --git a/includes/Network/Plugin.php b/includes/Network/Plugin.php index c6a60bc..ff27839 100644 --- a/includes/Network/Plugin.php +++ b/includes/Network/Plugin.php @@ -85,7 +85,7 @@ class Plugin { 'manage_network_options', 'robotstxt-mediaaudit-network', array( $this->audit_page, 'render' ), - 'dashicons-camera', + ROBOTSTXT_MEDIAAUDIT_MENU_ICON, 11 ); @@ -126,7 +126,7 @@ class Plugin { 'manage_network_options', 'robotstxt-mediaaudit-network', array( $this->tools_page, 'render_status_only' ), - 'dashicons-camera', + ROBOTSTXT_MEDIAAUDIT_MENU_ICON, 11 ); diff --git a/readme.txt b/readme.txt index de1cf9f..b589d9c 100644 --- a/readme.txt +++ b/readme.txt @@ -1,11 +1,11 @@ === Media Audit (by ROBOTSTXT) === Contributors: robotstxt, javiercasares Tags: media, copyright, images, reverse image search, media library -Requires at least: 5.3 -Tested up to: 7.1 -Requires PHP: 8.0 -Stable tag: 1.9.0 -Version: 1.9.0 +Requires at least: 7.0 +Tested up to: 7.2 +Requires PHP: 8.3 +Stable tag: 1.9.1 +Version: 1.9.1 License: GPL-3.0-or-later License URI: https://www.gnu.org/licenses/gpl-3.0.txt @@ -90,14 +90,20 @@ By default, no. Enable **Settings → Delete data on uninstall** if you want all == Compatibility == -* WordPress: 5.3 - 7.1 -* PHP: 8.0 - 8.5 +* WordPress: 7.0 - 7.2 +* PHP: 8.3 - 8.6 * WP-CLI: 2.x == Changelog == Only the 3 latest versions. The full changelog is at [www.robotstxt.software/plugins/robotstxt-mediaaudit/](https://www.robotstxt.software/plugins/robotstxt-mediaaudit/). += 1.9.1 = + +* Compatibility window raised: WordPress 7.0 - 7.2 (tested on 7.2-beta4) and PHP 8.3 - 8.6 (tested on 8.6.0RC3). +* The admin menu icon (site and network admin) is now an SVG icon (base64 data URI) instead of the dashicons font — the same camera glyph, rendered crisp on any display, and supported by every WordPress version in the support window (core's new `wp_get_icon()` inline SVG API is WordPress 7.2 only). +* Dev tooling refreshed via `composer update` (PHPStan 2.3.5, wp-compat 3.0.1, WordPress stubs 7.1.2); PHPStan documented at level 9, the maximum level passing without a baseline. No production dependency changes; no known CVEs. + = 1.9.0 = * Action Scheduler is now bundled via Composer (`woocommerce/action-scheduler`): the external `action-scheduler` plugin is no longer required. @@ -109,15 +115,6 @@ Only the 3 latest versions. The full changelog is at [www.robotstxt.software/plu * The Plugins page now shows a dismissible notice when Manager is not installed and active, and the Settings page shows a permanent notice until it is. * New `Update URI` header pointing to the plugin page at www.robotstxt.software; Plugin and Author URIs updated accordingly. -= 1.8.2 = - -* Contribution guidelines restructured: `AGENTS.md` is now an index to topic-specific `AGENTS-*.md` files (single source of truth). -* Added `bin/preflight.sh` automated pre-deploy verification (PHPCS, PHPStan, PHPCompatibility, PHPUnit, composer audit, ZIP inspection). -* Added plugin header tests validating header consistency (`Stable tag` ↔ `Version` ↔ version constant). -* Added `.claude/settings.json` deny rules enforcing no-auto-deploy / no-push / no-tag / no-merge. -* Added `.claude/agents/security-auditor.md` and `.claude/commands/deploy-check.md` for clean-context pre-deploy audits. -* Fixed `bin/deploy.sh` excluding all `AGENTS-*.md` dev docs from the release ZIP (previously only `AGENTS.md`). - = Previous versions = If you want to see the full changelog, visit [www.robotstxt.software/plugins/robotstxt-mediaaudit/](https://www.robotstxt.software/plugins/robotstxt-mediaaudit/). diff --git a/robotstxt-mediaaudit.php b/robotstxt-mediaaudit.php index 8dd1b3b..533ed73 100644 --- a/robotstxt-mediaaudit.php +++ b/robotstxt-mediaaudit.php @@ -3,10 +3,10 @@ * Plugin Name: Media Audit (by ROBOTSTXT) * Plugin URI: https://www.robotstxt.software/plugins/robotstxt-mediaaudit/ * Description: Internal media library usage auditing and external reverse image search to detect potential copyright issues. - * Version: 1.9.0 - * Requires at least: 5.3 - * Tested up to: 7.1 - * Requires PHP: 8.0 + * Version: 1.9.1 + * Requires at least: 7.0 + * Tested up to: 7.2 + * Requires PHP: 8.3 * Update URI: https://www.robotstxt.software/plugins/robotstxt-mediaaudit/ * Network: true * Author: ROBOTSTXT @@ -24,12 +24,24 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } -define( 'ROBOTSTXT_MEDIAAUDIT_VERSION', '1.9.0' ); +define( 'ROBOTSTXT_MEDIAAUDIT_VERSION', '1.9.1' ); define( 'ROBOTSTXT_MEDIAAUDIT_DB_VERSION', '1.3.0' ); define( 'ROBOTSTXT_MEDIAAUDIT_PLUGIN_FILE', __FILE__ ); define( 'ROBOTSTXT_MEDIAAUDIT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'ROBOTSTXT_MEDIAAUDIT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); +/* + * Admin menu icon: base64 SVG (the dashicons camera glyph), rendered by + * WordPress as a background image. Core replaces dashicons in the admin + * menu with inline SVG (wp_get_icon(), WP 7.2), but data-URI SVG icons + * keep working on every supported WordPress version, so this is the + * cross-version-safe way to ship a vector menu icon. + */ +define( + 'ROBOTSTXT_MEDIAAUDIT_MENU_ICON', + 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0iI2MzYzRjNyIgZD0iTTYgNVYzSDN2Mmgzem0xMiAxMFY0SDlMNyA2SDJ2OWgxNnptLTctOGMxLjY2IDAgMyAxLjM0IDMgM3MtMS4zNCAzLTMgMy0zLTEuMzQtMy0zIDEuMzQtMyAzLTN6Ii8+PC9zdmc+' +); + require_once ROBOTSTXT_MEDIAAUDIT_PLUGIN_DIR . 'vendor/autoload.php'; /* diff --git a/vendor/autoload.php b/vendor/autoload.php index f8df8e0..0f29930 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -19,4 +19,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInite5e52722a3dd923332bc7708a6f4efbf::getLoader(); +return ComposerAutoloaderInit776e296c583a6543825e1ace68c8fc05::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 6a693bd..50cb6a6 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInite5e52722a3dd923332bc7708a6f4efbf +class ComposerAutoloaderInit776e296c583a6543825e1ace68c8fc05 { private static $loader; @@ -24,12 +24,12 @@ class ComposerAutoloaderInite5e52722a3dd923332bc7708a6f4efbf require __DIR__ . '/platform_check.php'; - spl_autoload_register(array('ComposerAutoloaderInite5e52722a3dd923332bc7708a6f4efbf', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit776e296c583a6543825e1ace68c8fc05', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInite5e52722a3dd923332bc7708a6f4efbf', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit776e296c583a6543825e1ace68c8fc05', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInite5e52722a3dd923332bc7708a6f4efbf::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit776e296c583a6543825e1ace68c8fc05::getInitializer($loader)); $loader->register(true); diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 07a70e9..47d1e67 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInite5e52722a3dd923332bc7708a6f4efbf +class ComposerStaticInit776e296c583a6543825e1ace68c8fc05 { public static $prefixLengthsPsr4 = array ( 'M' => @@ -60,9 +60,9 @@ class ComposerStaticInite5e52722a3dd923332bc7708a6f4efbf public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInite5e52722a3dd923332bc7708a6f4efbf::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInite5e52722a3dd923332bc7708a6f4efbf::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInite5e52722a3dd923332bc7708a6f4efbf::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit776e296c583a6543825e1ace68c8fc05::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit776e296c583a6543825e1ace68c8fc05::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit776e296c583a6543825e1ace68c8fc05::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/platform_check.php b/vendor/composer/platform_check.php index 14bf88d..af033b9 100644 --- a/vendor/composer/platform_check.php +++ b/vendor/composer/platform_check.php @@ -4,8 +4,8 @@ $issues = array(); -if (!(PHP_VERSION_ID >= 80200)) { - $issues[] = 'Your Composer dependencies require a PHP version ">= 8.2.0". You are running ' . PHP_VERSION . '.'; +if (!(PHP_VERSION_ID >= 80300)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 8.3.0". You are running ' . PHP_VERSION . '.'; } if ($issues) {