Changeset 3737768
- Timestamp:
- 10/10/2026 08:28:24 AM (2 weeks ago)
- Location:
- nhrrob-smart-media-manager
- Files:
-
- 2 added
- 10 edited
- 1 copied
-
tags/1.3.0 (copied) (copied from nhrrob-smart-media-manager/trunk )
-
tags/1.3.0/composer.json (modified) (2 diffs)
-
tags/1.3.0/includes/Abilities.php (added)
-
tags/1.3.0/includes/App.php (modified) (1 diff)
-
tags/1.3.0/languages/nhrrob-smart-media-manager.pot (modified) (6 diffs)
-
tags/1.3.0/nhrrob-smart-media-manager.php (modified) (2 diffs)
-
tags/1.3.0/readme.txt (modified) (5 diffs)
-
trunk/composer.json (modified) (2 diffs)
-
trunk/includes/Abilities.php (added)
-
trunk/includes/App.php (modified) (1 diff)
-
trunk/languages/nhrrob-smart-media-manager.pot (modified) (6 diffs)
-
trunk/nhrrob-smart-media-manager.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nhrrob-smart-media-manager/tags/1.3.0/composer.json
r3729448 r3737768 18 18 "phpunit/phpunit": "^10.5", 19 19 "brain/monkey": "^2.6", 20 "yoast/phpunit-polyfills": "^2.0" 20 "yoast/phpunit-polyfills": "^2.0", 21 "phpcompatibility/phpcompatibility-wp": "^3.0@alpha", 22 "phpcompatibility/php-compatibility": "^10.0@alpha", 23 "phpcompatibility/phpcompatibility-paragonie": "^2.0@alpha" 21 24 }, 22 25 "autoload": { … … 38 41 "allow-plugins": { 39 42 "dealerdirect/phpcodesniffer-composer-installer": true 43 }, 44 "platform": { 45 "php": "8.1.33" 40 46 } 41 47 } -
nhrrob-smart-media-manager/tags/1.3.0/includes/App.php
r3729448 r3737768 48 48 ( new Admin\NativeLibrary() )->register_hooks(); 49 49 ( new Block() )->register_hooks(); 50 ( new Abilities() )->register_hooks(); 50 51 51 52 add_filter( 'plugin_action_links_' . plugin_basename( NHRSMM_FILE ), [ $this, 'action_links' ] ); -
nhrrob-smart-media-manager/tags/1.3.0/languages/nhrrob-smart-media-manager.pot
r3729604 r3737768 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: NHR Smart Media Manager – Media Library Folders & AI Alt Text 1. 2.0\n"5 "Project-Id-Version: NHR Smart Media Manager – Media Library Folders & AI Alt Text 1.3.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/nhrrob-smart-media-manager\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-10- 05T19:19:29+00:00\n"12 "POT-Creation-Date: 2026-10-10T08:12:22+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 40 40 msgstr "" 41 41 42 #: includes/Abilities.php:52 43 msgid "Smart Media Manager" 44 msgstr "" 45 46 #: includes/Abilities.php:53 47 msgid "Media library folders, files and where files are used." 48 msgstr "" 49 50 #: includes/Abilities.php:86 51 msgid "Attachment ID, as returned by nhrsmm/list-media." 52 msgstr "" 53 54 #: includes/Abilities.php:92 55 msgid "List media folders" 56 msgstr "" 57 58 #: includes/Abilities.php:93 59 msgid "Returns the media folder tree (each folder with its id, name, file count and children) and library totals: all files, files in no folder, images without alt text and files in the trash." 60 msgstr "" 61 62 #: includes/Abilities.php:99 63 msgid "List media files" 64 msgstr "" 65 66 #: includes/Abilities.php:100 67 msgid "Returns one page of media files with id, title, alt text, caption, URL, type, size and folders. Filter by folder, search text or file type; alt \"missing\" lists images without alt text; unused lists files the last unused-files scan flagged." 68 msgstr "" 69 70 #: includes/Abilities.php:107 71 msgid "Folder ID. 0 lists files that are in no folder." 72 msgstr "" 73 74 #: includes/Abilities.php:113 75 msgid "File type, e.g. image, video, audio." 76 msgstr "" 77 78 #: includes/Abilities.php:136 79 msgid "Find where a file is used" 80 msgstr "" 81 82 #: includes/Abilities.php:137 83 msgid "Returns the posts and settings that reference one media file (featured image, post content, post meta, site icon or logo). A file used only from theme files or CSS is not found." 84 msgstr "" 85 86 #: includes/Abilities.php:148 87 msgid "Create a media folder" 88 msgstr "" 89 90 #: includes/Abilities.php:149 91 msgid "Creates a media folder, optionally inside another folder." 92 msgstr "" 93 94 #: includes/Abilities.php:160 95 msgid "Parent folder ID. 0 or omitted creates a top-level folder." 96 msgstr "" 97 98 #: includes/Abilities.php:170 99 msgid "Move files to a folder" 100 msgstr "" 101 102 #: includes/Abilities.php:171 103 msgid "Moves media files into one folder, replacing the folders they were in. folder_id 0 takes them out of every folder. Files are not changed, only their folder. Returns how many were moved and the IDs that could not be." 104 msgstr "" 105 106 #: includes/Abilities.php:193 107 msgid "Update a file's text fields" 108 msgstr "" 109 110 #: includes/Abilities.php:194 111 msgid "Sets the alt text, title, caption and/or description of one media file. Only the fields passed are changed; the previous text is overwritten." 112 msgstr "" 113 114 #: includes/Abilities.php:293 115 #: includes/Api/RestMedia.php:153 116 #: includes/Api/RestMedia.php:253 117 msgid "You cannot view this attachment." 118 msgstr "" 119 120 #: includes/Abilities.php:334 121 #: includes/Api/RestAi.php:67 122 #: includes/Api/RestAi.php:97 123 #: includes/Api/RestAi.php:123 124 #: includes/Api/RestMedia.php:172 125 #: includes/Api/RestMedia.php:192 126 #: includes/Api/RestMedia.php:315 127 msgid "You cannot edit this attachment." 128 msgstr "" 129 42 130 #: includes/Admin/MediaPage.php:35 43 131 msgid "NHR Smart Media Manager" … … 45 133 46 134 #: includes/Admin/MediaPage.php:36 47 #: includes/App.php:7 1135 #: includes/App.php:72 48 136 msgid "Smart Library" 49 137 msgstr "" … … 93 181 msgstr "" 94 182 95 #: includes/Api/RestAi.php:6796 #: includes/Api/RestAi.php:9797 #: includes/Api/RestAi.php:12398 #: includes/Api/RestMedia.php:17299 #: includes/Api/RestMedia.php:192100 #: includes/Api/RestMedia.php:315101 msgid "You cannot edit this attachment."102 msgstr ""103 104 #: includes/Api/RestMedia.php:153105 #: includes/Api/RestMedia.php:253106 msgid "You cannot view this attachment."107 msgstr ""108 109 183 #: includes/Api/RestMedia.php:158 110 184 #: includes/Core/Media.php:284 … … 121 195 msgstr "" 122 196 123 #: includes/App.php:7 0197 #: includes/App.php:71 124 198 #: admin/src/components/Topbar.js:147 125 199 msgid "Settings" 126 200 msgstr "" 127 201 128 #: includes/App.php:8 7202 #: includes/App.php:88 129 203 msgid "Media Folders" 130 204 msgstr "" 131 205 132 #: includes/App.php:8 8206 #: includes/App.php:89 133 207 msgid "Media Folder" 134 208 msgstr "" -
nhrrob-smart-media-manager/tags/1.3.0/nhrrob-smart-media-manager.php
r3729604 r3737768 6 6 * Author: Nazmul Hasan Robin 7 7 * Author URI: https://profiles.wordpress.org/nhrrob/ 8 * Version: 1. 2.08 * Version: 1.3.0 9 9 * Requires at least: 7.0 10 10 * Requires PHP: 7.4 … … 32 32 * @var string 33 33 */ 34 const VERSION = '1. 2.0';34 const VERSION = '1.3.0'; 35 35 36 36 /** -
nhrrob-smart-media-manager/tags/1.3.0/readme.txt
r3729604 r3737768 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 2.07 Stable tag: 1.3.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 36 36 * **Starred & Recent** — Star files and reopen recent ones. Both lists are saved to your user account. 37 37 * **WP-CLI** — `wp nhrsmm alt --limit=200` generates alt text for images that have none. 38 * **AI agent and MCP ready** — The plugin registers six abilities with the WordPress Abilities API, so AI agents and MCP clients (through the WordPress MCP Adapter) can list folders and files, find images without alt text, see where a file is used, create a folder, move files and write alt text, titles and captions. Editors and above only. Nothing can be deleted through them. 38 39 * **Multisite** — Each site in a network has its own folders and settings. 39 40 * **Keyboard Shortcuts** — Full keyboard navigation (Escape, Delete, Ctrl+A, Shift+click range select, Arrow keys). … … 105 106 106 107 Yes. Add the Folder Gallery block and pick a folder, or use the `[nhrsmm_gallery folder="12"]` shortcode. The gallery always shows what is in the folder, so you manage it from the media library instead of editing each page. 108 109 = Can an AI agent or MCP client use this plugin? = 110 111 Yes. The plugin registers six abilities with the WordPress Abilities API (they all start with `nhrsmm/`). Three only read: list folders, list files (with filters such as missing alt text) and where a file is used. Three make changes: create a folder, move files to a folder, and update a file's alt text, title, caption or description. They need the same permission as the Smart Library (Editor and above) and the right to edit each file. An agent cannot delete or replace a file, delete a folder or change settings. To use them over MCP, install the WordPress MCP Adapter plugin; this plugin does not bundle it. The abilities never call your AI provider. 112 113 = Which PHP versions are supported? = 114 115 PHP 7.4 and every later version. Each change is tested on PHP 7.4 through 8.5, and on the upcoming 8.6. 107 116 108 117 = Can I move my folders from another plugin? = … … 130 139 131 140 == Changelog == 141 142 = 1.3.0 = 143 * New: AI agent and MCP support. Six abilities registered with the WordPress Abilities API: list folders, list files, where a file is used, create a folder, move files, and update alt text, title, caption or description. Editors and above; nothing can be deleted through them. 144 * Compatibility: verified on PHP 7.4 through 8.5 and on PHP 8.6 release candidates. 145 * Developer: every pull request now runs the PHPCompatibilityWP ruleset plus a syntax check, the unit tests and a runtime smoke test on each supported PHP version. The security probe also covers abilities. 132 146 133 147 = 1.2.0 = … … 181 195 == Upgrade Notice == 182 196 197 = 1.3.0 = 198 AI agent and MCP support through six WordPress Abilities API abilities, and verified compatibility with PHP 7.4 through 8.5. 199 183 200 = 1.2.0 = 184 201 Dark theme, a preferred AI model setting, faster folder dropdowns and media lists, and a fix for sorting by size. -
nhrrob-smart-media-manager/trunk/composer.json
r3729448 r3737768 18 18 "phpunit/phpunit": "^10.5", 19 19 "brain/monkey": "^2.6", 20 "yoast/phpunit-polyfills": "^2.0" 20 "yoast/phpunit-polyfills": "^2.0", 21 "phpcompatibility/phpcompatibility-wp": "^3.0@alpha", 22 "phpcompatibility/php-compatibility": "^10.0@alpha", 23 "phpcompatibility/phpcompatibility-paragonie": "^2.0@alpha" 21 24 }, 22 25 "autoload": { … … 38 41 "allow-plugins": { 39 42 "dealerdirect/phpcodesniffer-composer-installer": true 43 }, 44 "platform": { 45 "php": "8.1.33" 40 46 } 41 47 } -
nhrrob-smart-media-manager/trunk/includes/App.php
r3729448 r3737768 48 48 ( new Admin\NativeLibrary() )->register_hooks(); 49 49 ( new Block() )->register_hooks(); 50 ( new Abilities() )->register_hooks(); 50 51 51 52 add_filter( 'plugin_action_links_' . plugin_basename( NHRSMM_FILE ), [ $this, 'action_links' ] ); -
nhrrob-smart-media-manager/trunk/languages/nhrrob-smart-media-manager.pot
r3729604 r3737768 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: NHR Smart Media Manager – Media Library Folders & AI Alt Text 1. 2.0\n"5 "Project-Id-Version: NHR Smart Media Manager – Media Library Folders & AI Alt Text 1.3.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/nhrrob-smart-media-manager\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-10- 05T19:19:29+00:00\n"12 "POT-Creation-Date: 2026-10-10T08:12:22+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 40 40 msgstr "" 41 41 42 #: includes/Abilities.php:52 43 msgid "Smart Media Manager" 44 msgstr "" 45 46 #: includes/Abilities.php:53 47 msgid "Media library folders, files and where files are used." 48 msgstr "" 49 50 #: includes/Abilities.php:86 51 msgid "Attachment ID, as returned by nhrsmm/list-media." 52 msgstr "" 53 54 #: includes/Abilities.php:92 55 msgid "List media folders" 56 msgstr "" 57 58 #: includes/Abilities.php:93 59 msgid "Returns the media folder tree (each folder with its id, name, file count and children) and library totals: all files, files in no folder, images without alt text and files in the trash." 60 msgstr "" 61 62 #: includes/Abilities.php:99 63 msgid "List media files" 64 msgstr "" 65 66 #: includes/Abilities.php:100 67 msgid "Returns one page of media files with id, title, alt text, caption, URL, type, size and folders. Filter by folder, search text or file type; alt \"missing\" lists images without alt text; unused lists files the last unused-files scan flagged." 68 msgstr "" 69 70 #: includes/Abilities.php:107 71 msgid "Folder ID. 0 lists files that are in no folder." 72 msgstr "" 73 74 #: includes/Abilities.php:113 75 msgid "File type, e.g. image, video, audio." 76 msgstr "" 77 78 #: includes/Abilities.php:136 79 msgid "Find where a file is used" 80 msgstr "" 81 82 #: includes/Abilities.php:137 83 msgid "Returns the posts and settings that reference one media file (featured image, post content, post meta, site icon or logo). A file used only from theme files or CSS is not found." 84 msgstr "" 85 86 #: includes/Abilities.php:148 87 msgid "Create a media folder" 88 msgstr "" 89 90 #: includes/Abilities.php:149 91 msgid "Creates a media folder, optionally inside another folder." 92 msgstr "" 93 94 #: includes/Abilities.php:160 95 msgid "Parent folder ID. 0 or omitted creates a top-level folder." 96 msgstr "" 97 98 #: includes/Abilities.php:170 99 msgid "Move files to a folder" 100 msgstr "" 101 102 #: includes/Abilities.php:171 103 msgid "Moves media files into one folder, replacing the folders they were in. folder_id 0 takes them out of every folder. Files are not changed, only their folder. Returns how many were moved and the IDs that could not be." 104 msgstr "" 105 106 #: includes/Abilities.php:193 107 msgid "Update a file's text fields" 108 msgstr "" 109 110 #: includes/Abilities.php:194 111 msgid "Sets the alt text, title, caption and/or description of one media file. Only the fields passed are changed; the previous text is overwritten." 112 msgstr "" 113 114 #: includes/Abilities.php:293 115 #: includes/Api/RestMedia.php:153 116 #: includes/Api/RestMedia.php:253 117 msgid "You cannot view this attachment." 118 msgstr "" 119 120 #: includes/Abilities.php:334 121 #: includes/Api/RestAi.php:67 122 #: includes/Api/RestAi.php:97 123 #: includes/Api/RestAi.php:123 124 #: includes/Api/RestMedia.php:172 125 #: includes/Api/RestMedia.php:192 126 #: includes/Api/RestMedia.php:315 127 msgid "You cannot edit this attachment." 128 msgstr "" 129 42 130 #: includes/Admin/MediaPage.php:35 43 131 msgid "NHR Smart Media Manager" … … 45 133 46 134 #: includes/Admin/MediaPage.php:36 47 #: includes/App.php:7 1135 #: includes/App.php:72 48 136 msgid "Smart Library" 49 137 msgstr "" … … 93 181 msgstr "" 94 182 95 #: includes/Api/RestAi.php:6796 #: includes/Api/RestAi.php:9797 #: includes/Api/RestAi.php:12398 #: includes/Api/RestMedia.php:17299 #: includes/Api/RestMedia.php:192100 #: includes/Api/RestMedia.php:315101 msgid "You cannot edit this attachment."102 msgstr ""103 104 #: includes/Api/RestMedia.php:153105 #: includes/Api/RestMedia.php:253106 msgid "You cannot view this attachment."107 msgstr ""108 109 183 #: includes/Api/RestMedia.php:158 110 184 #: includes/Core/Media.php:284 … … 121 195 msgstr "" 122 196 123 #: includes/App.php:7 0197 #: includes/App.php:71 124 198 #: admin/src/components/Topbar.js:147 125 199 msgid "Settings" 126 200 msgstr "" 127 201 128 #: includes/App.php:8 7202 #: includes/App.php:88 129 203 msgid "Media Folders" 130 204 msgstr "" 131 205 132 #: includes/App.php:8 8206 #: includes/App.php:89 133 207 msgid "Media Folder" 134 208 msgstr "" -
nhrrob-smart-media-manager/trunk/nhrrob-smart-media-manager.php
r3729604 r3737768 6 6 * Author: Nazmul Hasan Robin 7 7 * Author URI: https://profiles.wordpress.org/nhrrob/ 8 * Version: 1. 2.08 * Version: 1.3.0 9 9 * Requires at least: 7.0 10 10 * Requires PHP: 7.4 … … 32 32 * @var string 33 33 */ 34 const VERSION = '1. 2.0';34 const VERSION = '1.3.0'; 35 35 36 36 /** -
nhrrob-smart-media-manager/trunk/readme.txt
r3729604 r3737768 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1. 2.07 Stable tag: 1.3.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 36 36 * **Starred & Recent** — Star files and reopen recent ones. Both lists are saved to your user account. 37 37 * **WP-CLI** — `wp nhrsmm alt --limit=200` generates alt text for images that have none. 38 * **AI agent and MCP ready** — The plugin registers six abilities with the WordPress Abilities API, so AI agents and MCP clients (through the WordPress MCP Adapter) can list folders and files, find images without alt text, see where a file is used, create a folder, move files and write alt text, titles and captions. Editors and above only. Nothing can be deleted through them. 38 39 * **Multisite** — Each site in a network has its own folders and settings. 39 40 * **Keyboard Shortcuts** — Full keyboard navigation (Escape, Delete, Ctrl+A, Shift+click range select, Arrow keys). … … 105 106 106 107 Yes. Add the Folder Gallery block and pick a folder, or use the `[nhrsmm_gallery folder="12"]` shortcode. The gallery always shows what is in the folder, so you manage it from the media library instead of editing each page. 108 109 = Can an AI agent or MCP client use this plugin? = 110 111 Yes. The plugin registers six abilities with the WordPress Abilities API (they all start with `nhrsmm/`). Three only read: list folders, list files (with filters such as missing alt text) and where a file is used. Three make changes: create a folder, move files to a folder, and update a file's alt text, title, caption or description. They need the same permission as the Smart Library (Editor and above) and the right to edit each file. An agent cannot delete or replace a file, delete a folder or change settings. To use them over MCP, install the WordPress MCP Adapter plugin; this plugin does not bundle it. The abilities never call your AI provider. 112 113 = Which PHP versions are supported? = 114 115 PHP 7.4 and every later version. Each change is tested on PHP 7.4 through 8.5, and on the upcoming 8.6. 107 116 108 117 = Can I move my folders from another plugin? = … … 130 139 131 140 == Changelog == 141 142 = 1.3.0 = 143 * New: AI agent and MCP support. Six abilities registered with the WordPress Abilities API: list folders, list files, where a file is used, create a folder, move files, and update alt text, title, caption or description. Editors and above; nothing can be deleted through them. 144 * Compatibility: verified on PHP 7.4 through 8.5 and on PHP 8.6 release candidates. 145 * Developer: every pull request now runs the PHPCompatibilityWP ruleset plus a syntax check, the unit tests and a runtime smoke test on each supported PHP version. The security probe also covers abilities. 132 146 133 147 = 1.2.0 = … … 181 195 == Upgrade Notice == 182 196 197 = 1.3.0 = 198 AI agent and MCP support through six WordPress Abilities API abilities, and verified compatibility with PHP 7.4 through 8.5. 199 183 200 = 1.2.0 = 184 201 Dark theme, a preferred AI model setting, faster folder dropdowns and media lists, and a fix for sorting by size.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)