diff --git a/admin/class-robotstxt-manager-admin.php b/admin/class-robotstxt-manager-admin.php index ef4ef1a..2ddb717 100644 --- a/admin/class-robotstxt-manager-admin.php +++ b/admin/class-robotstxt-manager-admin.php @@ -25,6 +25,20 @@ class Robotstxt_Manager_Admin { */ public const PAGE_SLUG = 'robotstxt-manager'; + /** + * Raw SVG for the admin menu icon: a "screen options" grid in the + * standard admin icon gray (#a7aaad), rendered by WordPress as a + * 20px background image. + * + * Served base64-encoded as a data:image/svg+xml URI — the icon format + * WordPress documents for add_menu_page() and the direction core is + * taking with inline SVG icons (dashicons are frozen). Supported by + * every WordPress version the plugin runs on. + * + * @var string + */ + private const MENU_ICON_SVG = ''; + /** * Registers all hooks via the loader. * @@ -53,7 +67,7 @@ class Robotstxt_Manager_Admin { $cap, self::PAGE_SLUG, array( $this, 'render_page' ), - 'dashicons-screenoptions', + 'data:image/svg+xml;base64,' . base64_encode( self::MENU_ICON_SVG ), // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode -- documented WP menu-icon format; nothing is obfuscated. 71 ); } diff --git a/changelog.txt b/changelog.txt index 63a109e..b989b77 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,32 @@ == Changelog == += 1.9.2 = + +_Release date: 2026-11-04_ + +**Changed** + +* Minimum requirements raised to the ecosystem support window: **WordPress 7.0** (was 4.4) and **PHP 8.3** (was 8.0). The code itself is unchanged and still runs on older versions (see Compatibility for the scan floors), but 7.0/8.3 are the only versions supported and tested from now on. +* The admin menu icon is now an inline SVG (base64 `data:image/svg+xml` URI — the icon format WordPress documents for `add_menu_page()`) instead of the `dashicons-screenoptions` font glyph. Follows the direction of WordPress 7.2, where core replaces the admin's dashicons with SVG icons (wordpress-develop PR #12270) and the frozen dashicons font is legacy. Same 2×2 "screen options" motif in the standard admin icon gray; uses only the long-documented menu-icon format (wp-compat clean at WordPress 7.0 — no new WordPress API is used). +* Development tooling updated via `composer update`: phpstan 2.2.14 → 2.3.5, php-stubs/wordpress-stubs 7.1.0 → 7.1.2, phpunit 9.6.36 → 9.6.38. PHPCS `testVersion` and the preflight scan range now cover PHP 8.3-8.6. + +**Fixed** + +* readme.txt: the Multisite FAQ incorrectly said "not compatible" — the plugin has been Multisite-compatible (network-activated, network admin menus, network-level storage) since 1.6.0. +* License URI in the plugin header aligned with readme.txt and the documentation template (`gpl-3.0.txt`, was `.html`). + +**Compatibility** + +* WordPress: 7.0 - 7.2 (scan-verified 2026-11-04: wp-compat ladder clean from 4.4 through 7.0 — no WordPress API newer than 4.4 is in use; suite green against WordPress 7.2-beta4 trunk with the test library rebuilt 2026-11-03; `Tested up to` follows the dev install, which runs WordPress 7.2) +* PHP: 8.3 - 8.6 (scan-verified 2026-11-04: PHPCompatibility ladder 5.6-8.6 — the code remains scan-clean from PHP 7.4 (runtime floor 8.0: `mixed` hints, `str_contains()`, `str_starts_with()`), but the supported and declared floor is now 8.3 per the ecosystem window; verified running on PHP 8.3.36, and on 8.6.0RC3 ahead of its GA) + +**Tests** + +* PHPCS (WordPress-Core, WordPress-Docs, WordPress-Extra) + PHPCompatibility (8.3-8.6): pass +* PHPStan max (level 10) + wp-compat, **without baseline**: pass, 0 errors +* PHPUnit: 159 tests, 427 assertions on WordPress 7.2-beta4 / PHP 8.5 (also green on PHP 8.3 and 8.6RC3); line coverage 82.9% +* composer audit: no known CVEs + = 1.9.1 = _Release date: 2026-09-23_ diff --git a/readme.txt b/readme.txt index dbbbd43..5731c02 100644 --- a/readme.txt +++ b/readme.txt @@ -1,11 +1,11 @@ === Manager (by ROBOTSTXT) === Contributors: robotstxt, javiercasares Tags: dashboard, catalog, updates, subscriptions, management -Requires at least: 4.4 -Tested up to: 7.1 -Stable tag: 1.9.1 -Requires PHP: 8.0 -Version: 1.9.1 +Requires at least: 7.0 +Tested up to: 7.2 +Stable tag: 1.9.2 +Requires PHP: 8.3 +Version: 1.9.2 License: GPL-3.0-or-later License URI: https://www.gnu.org/licenses/gpl-3.0.txt @@ -71,11 +71,11 @@ Extract the contents of the ZIP and upload the contents to the `/wp-content/plug = Is this plugin compatible with WordPress Multisite? = -No. This plugin is intentionally not compatible with WordPress Multisite, matching the architecture of the rest of the ecosystem. +Yes. The plugin declares `Network: true`, so it activates network-wide and its menu appears in the network admin; all settings and cached data are stored at network level. = What PHP version is required? = -PHP 8.0 or higher. +PHP 8.3 or higher. = Do I need Plugins Core installed on my site? = @@ -87,13 +87,22 @@ Encrypted at rest using AES-256-CBC with a key derived from your site's WordPres == Compatibility == -* WordPress: 4.4 - 7.1 -* PHP: 8.0 - 8.5 +* WordPress: 7.0 - 7.2 +* PHP: 8.3 - 8.6 == Changelog == Only the 3 last versions. The full changelog will be at changelog.txt += 1.9.2 = + +_Release date: 2026-11-04_ + +* Changed: minimum requirements follow the ecosystem support window — WordPress 7.0 and PHP 8.3 — verified by full-range compatibility scans (WordPress ladder clean, PHPCompatibility clean; suite green against the WordPress 7.2 beta and PHP up to 8.6). +* Changed: the admin menu icon is now an inline SVG (base64 data URI) instead of a frozen dashicon — crisp on HiDPI screens and aligned with the SVG icon direction of WordPress 7.2. It uses the long-documented WordPress menu-icon format (no new WordPress API), so it renders on every supported version. +* Maintenance: development tooling updated (PHPStan 2.3.5 at max level without baseline, WordPress stubs 7.1.2, PHPUnit 9.6.38); dependency audit clean. +* Fixed: the Multisite FAQ in the readme incorrectly said "not compatible" — the plugin has been network-compatible since 1.6.0. License URI aligned between plugin header and readme. + = 1.9.1 = _Release date: 2026-09-23_ @@ -107,15 +116,6 @@ _Release date: 2026-09-22_ * New: security-update notices (with Core 1.16.0+). When the store declares a security patch for the exact version your site runs, a red "Update now" notice appears on the Plugins screen and the Manager catalog, and the update installs only that patch — your site is never pushed across feature versions by a security fix. * The WordPress update badge, `wp plugin update`, and auto-updates also target the declared patch. -= 1.8.1 = - -_Release date: 2026-09-22_ - -* Fixed: pending updates were invisible on sites where the WordPress.org update check never completes (api.wordpress.org blocked/unreachable — common on many hosts). Update data is now injected whenever WordPress reads it, so pending ROBOTSTXT updates show up on the Plugins screen, the Updates page, and WP-CLI regardless of WordPress.org connectivity. -* Fixed: opt-in uninstall now also deletes the cached subscriptions transient, so no subscription data outlives the plugin when data deletion is enabled. -* Fixed: a hardcoded "Subscribed" label in the multi-license catalog pill is now translatable. -* Maintenance: development tooling updated (PHPStan max, WordPress stubs 7.1.0); compatibility floors re-verified (WordPress 4.4, PHP 8.0). - = Previous versions = If you want to see the full changelog, visit the [plugin page](https://www.robotstxt.software/plugins/robotstxt-manager/). diff --git a/robotstxt-manager.php b/robotstxt-manager.php index 9ee06ee..0db6b1e 100644 --- a/robotstxt-manager.php +++ b/robotstxt-manager.php @@ -3,14 +3,14 @@ * Plugin Name: Manager (by ROBOTSTXT) * Plugin URI: https://www.robotstxt.software/plugins/robotstxt-manager/ * Description: Client-side dashboard for the ROBOTSTXT plugin ecosystem. Lists the catalog from a remote Plugins Core install, resolves local install/update state, and installs, activates, and updates plugins directly from the store. - * Version: 1.9.1 - * Requires at least: 4.4 - * Requires PHP: 8.0 + * Version: 1.9.2 + * Requires at least: 7.0 + * Requires PHP: 8.3 * Update URI: https://www.robotstxt.software/plugins/robotstxt-manager/ * Author: ROBOTSTXT * Author URI: https://www.robotstxt.software/ * License: GPL-3.0-or-later - * License URI: https://www.gnu.org/licenses/gpl-3.0.html + * License URI: https://www.gnu.org/licenses/gpl-3.0.txt * Text Domain: robotstxt-manager * Domain Path: /languages * Network: true @@ -23,7 +23,7 @@ if ( ! defined( 'ABSPATH' ) ) { } /** Plugin version. */ -define( 'ROBOTSTXT_MANAGER_VERSION', '1.9.1' ); +define( 'ROBOTSTXT_MANAGER_VERSION', '1.9.2' ); /** Absolute path to the plugin directory, with trailing slash. */ define( 'ROBOTSTXT_MANAGER_DIR', plugin_dir_path( __FILE__ ) ); diff --git a/vendor/autoload.php b/vendor/autoload.php index 38a9b43..a9d454b 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 ComposerAutoloaderInit891e1a90cdf8723a2ca296aab35c6101::getLoader(); +return ComposerAutoloaderInit55e332ce6cecdfbf6a25c40d5d907ea6::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 036374e..a744dd9 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit891e1a90cdf8723a2ca296aab35c6101 +class ComposerAutoloaderInit55e332ce6cecdfbf6a25c40d5d907ea6 { private static $loader; @@ -24,12 +24,12 @@ class ComposerAutoloaderInit891e1a90cdf8723a2ca296aab35c6101 require __DIR__ . '/platform_check.php'; - spl_autoload_register(array('ComposerAutoloaderInit891e1a90cdf8723a2ca296aab35c6101', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit55e332ce6cecdfbf6a25c40d5d907ea6', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit891e1a90cdf8723a2ca296aab35c6101', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit55e332ce6cecdfbf6a25c40d5d907ea6', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit891e1a90cdf8723a2ca296aab35c6101::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit55e332ce6cecdfbf6a25c40d5d907ea6::getInitializer($loader)); $loader->register(true); diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index d8902c3..2001a56 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit891e1a90cdf8723a2ca296aab35c6101 +class ComposerStaticInit55e332ce6cecdfbf6a25c40d5d907ea6 { public static $classMap = array ( 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', @@ -22,7 +22,7 @@ class ComposerStaticInit891e1a90cdf8723a2ca296aab35c6101 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->classMap = ComposerStaticInit891e1a90cdf8723a2ca296aab35c6101::$classMap; + $loader->classMap = ComposerStaticInit55e332ce6cecdfbf6a25c40d5d907ea6::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/platform_check.php b/vendor/composer/platform_check.php index a70ba47..af033b9 100644 --- a/vendor/composer/platform_check.php +++ b/vendor/composer/platform_check.php @@ -4,8 +4,8 @@ $issues = array(); -if (!(PHP_VERSION_ID >= 80000)) { - $issues[] = 'Your Composer dependencies require a PHP version ">= 8.0.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) {