Plugin Directory

Changeset 3737768


Ignore:
Timestamp:
10/10/2026 08:28:24 AM (2 weeks ago)
Author:
nhrrob
Message:

Update to version 1.3.0 from GitHub

Location:
nhrrob-smart-media-manager
Files:
2 added
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • nhrrob-smart-media-manager/tags/1.3.0/composer.json

    r3729448 r3737768  
    1818        "phpunit/phpunit": "^10.5",
    1919        "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"
    2124    },
    2225    "autoload": {
    … …  
    3841        "allow-plugins": {
    3942            "dealerdirect/phpcodesniffer-composer-installer": true
     43        },
     44        "platform": {
     45            "php": "8.1.33"
    4046        }
    4147    }
  • nhrrob-smart-media-manager/tags/1.3.0/includes/App.php

    r3729448 r3737768  
    4848                ( new Admin\NativeLibrary() )->register_hooks();
    4949                ( new Block() )->register_hooks();
     50                ( new Abilities() )->register_hooks();
    5051
    5152                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  
    33msgid ""
    44msgstr ""
    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"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/nhrrob-smart-media-manager\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"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"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    4040msgstr ""
    4141
     42#: includes/Abilities.php:52
     43msgid "Smart Media Manager"
     44msgstr ""
     45
     46#: includes/Abilities.php:53
     47msgid "Media library folders, files and where files are used."
     48msgstr ""
     49
     50#: includes/Abilities.php:86
     51msgid "Attachment ID, as returned by nhrsmm/list-media."
     52msgstr ""
     53
     54#: includes/Abilities.php:92
     55msgid "List media folders"
     56msgstr ""
     57
     58#: includes/Abilities.php:93
     59msgid "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."
     60msgstr ""
     61
     62#: includes/Abilities.php:99
     63msgid "List media files"
     64msgstr ""
     65
     66#: includes/Abilities.php:100
     67msgid "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."
     68msgstr ""
     69
     70#: includes/Abilities.php:107
     71msgid "Folder ID. 0 lists files that are in no folder."
     72msgstr ""
     73
     74#: includes/Abilities.php:113
     75msgid "File type, e.g. image, video, audio."
     76msgstr ""
     77
     78#: includes/Abilities.php:136
     79msgid "Find where a file is used"
     80msgstr ""
     81
     82#: includes/Abilities.php:137
     83msgid "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."
     84msgstr ""
     85
     86#: includes/Abilities.php:148
     87msgid "Create a media folder"
     88msgstr ""
     89
     90#: includes/Abilities.php:149
     91msgid "Creates a media folder, optionally inside another folder."
     92msgstr ""
     93
     94#: includes/Abilities.php:160
     95msgid "Parent folder ID. 0 or omitted creates a top-level folder."
     96msgstr ""
     97
     98#: includes/Abilities.php:170
     99msgid "Move files to a folder"
     100msgstr ""
     101
     102#: includes/Abilities.php:171
     103msgid "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."
     104msgstr ""
     105
     106#: includes/Abilities.php:193
     107msgid "Update a file's text fields"
     108msgstr ""
     109
     110#: includes/Abilities.php:194
     111msgid "Sets the alt text, title, caption and/or description of one media file. Only the fields passed are changed; the previous text is overwritten."
     112msgstr ""
     113
     114#: includes/Abilities.php:293
     115#: includes/Api/RestMedia.php:153
     116#: includes/Api/RestMedia.php:253
     117msgid "You cannot view this attachment."
     118msgstr ""
     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
     127msgid "You cannot edit this attachment."
     128msgstr ""
     129
    42130#: includes/Admin/MediaPage.php:35
    43131msgid "NHR Smart Media Manager"
    … …  
    45133
    46134#: includes/Admin/MediaPage.php:36
    47 #: includes/App.php:71
     135#: includes/App.php:72
    48136msgid "Smart Library"
    49137msgstr ""
    … …  
    93181msgstr ""
    94182
    95 #: includes/Api/RestAi.php:67
    96 #: includes/Api/RestAi.php:97
    97 #: includes/Api/RestAi.php:123
    98 #: includes/Api/RestMedia.php:172
    99 #: includes/Api/RestMedia.php:192
    100 #: includes/Api/RestMedia.php:315
    101 msgid "You cannot edit this attachment."
    102 msgstr ""
    103 
    104 #: includes/Api/RestMedia.php:153
    105 #: includes/Api/RestMedia.php:253
    106 msgid "You cannot view this attachment."
    107 msgstr ""
    108 
    109183#: includes/Api/RestMedia.php:158
    110184#: includes/Core/Media.php:284
    … …  
    121195msgstr ""
    122196
    123 #: includes/App.php:70
     197#: includes/App.php:71
    124198#: admin/src/components/Topbar.js:147
    125199msgid "Settings"
    126200msgstr ""
    127201
    128 #: includes/App.php:87
     202#: includes/App.php:88
    129203msgid "Media Folders"
    130204msgstr ""
    131205
    132 #: includes/App.php:88
     206#: includes/App.php:89
    133207msgid "Media Folder"
    134208msgstr ""
  • nhrrob-smart-media-manager/tags/1.3.0/nhrrob-smart-media-manager.php

    r3729604 r3737768  
    66 * Author: Nazmul Hasan Robin
    77 * Author URI: https://profiles.wordpress.org/nhrrob/
    8  * Version: 1.2.0
     8 * Version: 1.3.0
    99 * Requires at least: 7.0
    1010 * Requires PHP: 7.4
    … …  
    3232         * @var string
    3333         */
    34         const VERSION = '1.2.0';
     34        const VERSION = '1.3.0';
    3535
    3636        /**
  • nhrrob-smart-media-manager/tags/1.3.0/readme.txt

    r3729604 r3737768  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.2.0
     7Stable tag: 1.3.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    3636* **Starred & Recent** — Star files and reopen recent ones. Both lists are saved to your user account.
    3737* **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.
    3839* **Multisite** — Each site in a network has its own folders and settings.
    3940* **Keyboard Shortcuts** — Full keyboard navigation (Escape, Delete, Ctrl+A, Shift+click range select, Arrow keys).
    … …  
    105106
    106107Yes. 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
     111Yes. 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
     115PHP 7.4 and every later version. Each change is tested on PHP 7.4 through 8.5, and on the upcoming 8.6.
    107116
    108117= Can I move my folders from another plugin? =
    … …  
    130139
    131140== 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.
    132146
    133147= 1.2.0 =
    … …  
    181195== Upgrade Notice ==
    182196
     197= 1.3.0 =
     198AI agent and MCP support through six WordPress Abilities API abilities, and verified compatibility with PHP 7.4 through 8.5.
     199
    183200= 1.2.0 =
    184201Dark 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  
    1818        "phpunit/phpunit": "^10.5",
    1919        "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"
    2124    },
    2225    "autoload": {
    … …  
    3841        "allow-plugins": {
    3942            "dealerdirect/phpcodesniffer-composer-installer": true
     43        },
     44        "platform": {
     45            "php": "8.1.33"
    4046        }
    4147    }
  • nhrrob-smart-media-manager/trunk/includes/App.php

    r3729448 r3737768  
    4848                ( new Admin\NativeLibrary() )->register_hooks();
    4949                ( new Block() )->register_hooks();
     50                ( new Abilities() )->register_hooks();
    5051
    5152                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  
    33msgid ""
    44msgstr ""
    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"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/nhrrob-smart-media-manager\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"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"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    4040msgstr ""
    4141
     42#: includes/Abilities.php:52
     43msgid "Smart Media Manager"
     44msgstr ""
     45
     46#: includes/Abilities.php:53
     47msgid "Media library folders, files and where files are used."
     48msgstr ""
     49
     50#: includes/Abilities.php:86
     51msgid "Attachment ID, as returned by nhrsmm/list-media."
     52msgstr ""
     53
     54#: includes/Abilities.php:92
     55msgid "List media folders"
     56msgstr ""
     57
     58#: includes/Abilities.php:93
     59msgid "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."
     60msgstr ""
     61
     62#: includes/Abilities.php:99
     63msgid "List media files"
     64msgstr ""
     65
     66#: includes/Abilities.php:100
     67msgid "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."
     68msgstr ""
     69
     70#: includes/Abilities.php:107
     71msgid "Folder ID. 0 lists files that are in no folder."
     72msgstr ""
     73
     74#: includes/Abilities.php:113
     75msgid "File type, e.g. image, video, audio."
     76msgstr ""
     77
     78#: includes/Abilities.php:136
     79msgid "Find where a file is used"
     80msgstr ""
     81
     82#: includes/Abilities.php:137
     83msgid "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."
     84msgstr ""
     85
     86#: includes/Abilities.php:148
     87msgid "Create a media folder"
     88msgstr ""
     89
     90#: includes/Abilities.php:149
     91msgid "Creates a media folder, optionally inside another folder."
     92msgstr ""
     93
     94#: includes/Abilities.php:160
     95msgid "Parent folder ID. 0 or omitted creates a top-level folder."
     96msgstr ""
     97
     98#: includes/Abilities.php:170
     99msgid "Move files to a folder"
     100msgstr ""
     101
     102#: includes/Abilities.php:171
     103msgid "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."
     104msgstr ""
     105
     106#: includes/Abilities.php:193
     107msgid "Update a file's text fields"
     108msgstr ""
     109
     110#: includes/Abilities.php:194
     111msgid "Sets the alt text, title, caption and/or description of one media file. Only the fields passed are changed; the previous text is overwritten."
     112msgstr ""
     113
     114#: includes/Abilities.php:293
     115#: includes/Api/RestMedia.php:153
     116#: includes/Api/RestMedia.php:253
     117msgid "You cannot view this attachment."
     118msgstr ""
     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
     127msgid "You cannot edit this attachment."
     128msgstr ""
     129
    42130#: includes/Admin/MediaPage.php:35
    43131msgid "NHR Smart Media Manager"
    … …  
    45133
    46134#: includes/Admin/MediaPage.php:36
    47 #: includes/App.php:71
     135#: includes/App.php:72
    48136msgid "Smart Library"
    49137msgstr ""
    … …  
    93181msgstr ""
    94182
    95 #: includes/Api/RestAi.php:67
    96 #: includes/Api/RestAi.php:97
    97 #: includes/Api/RestAi.php:123
    98 #: includes/Api/RestMedia.php:172
    99 #: includes/Api/RestMedia.php:192
    100 #: includes/Api/RestMedia.php:315
    101 msgid "You cannot edit this attachment."
    102 msgstr ""
    103 
    104 #: includes/Api/RestMedia.php:153
    105 #: includes/Api/RestMedia.php:253
    106 msgid "You cannot view this attachment."
    107 msgstr ""
    108 
    109183#: includes/Api/RestMedia.php:158
    110184#: includes/Core/Media.php:284
    … …  
    121195msgstr ""
    122196
    123 #: includes/App.php:70
     197#: includes/App.php:71
    124198#: admin/src/components/Topbar.js:147
    125199msgid "Settings"
    126200msgstr ""
    127201
    128 #: includes/App.php:87
     202#: includes/App.php:88
    129203msgid "Media Folders"
    130204msgstr ""
    131205
    132 #: includes/App.php:88
     206#: includes/App.php:89
    133207msgid "Media Folder"
    134208msgstr ""
  • nhrrob-smart-media-manager/trunk/nhrrob-smart-media-manager.php

    r3729604 r3737768  
    66 * Author: Nazmul Hasan Robin
    77 * Author URI: https://profiles.wordpress.org/nhrrob/
    8  * Version: 1.2.0
     8 * Version: 1.3.0
    99 * Requires at least: 7.0
    1010 * Requires PHP: 7.4
    … …  
    3232         * @var string
    3333         */
    34         const VERSION = '1.2.0';
     34        const VERSION = '1.3.0';
    3535
    3636        /**
  • nhrrob-smart-media-manager/trunk/readme.txt

    r3729604 r3737768  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.2.0
     7Stable tag: 1.3.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    3636* **Starred & Recent** — Star files and reopen recent ones. Both lists are saved to your user account.
    3737* **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.
    3839* **Multisite** — Each site in a network has its own folders and settings.
    3940* **Keyboard Shortcuts** — Full keyboard navigation (Escape, Delete, Ctrl+A, Shift+click range select, Arrow keys).
    … …  
    105106
    106107Yes. 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
     111Yes. 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
     115PHP 7.4 and every later version. Each change is tested on PHP 7.4 through 8.5, and on the upcoming 8.6.
    107116
    108117= Can I move my folders from another plugin? =
    … …  
    130139
    131140== 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.
    132146
    133147= 1.2.0 =
    … …  
    181195== Upgrade Notice ==
    182196
     197= 1.3.0 =
     198AI agent and MCP support through six WordPress Abilities API abilities, and verified compatibility with PHP 7.4 through 8.5.
     199
    183200= 1.2.0 =
    184201Dark 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.