Changeset 14710
- Timestamp:
- 03/13/2026 04:50:39 PM (4 weeks ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities
- Files:
-
- 1 added
- 4 edited
-
class-registrar.php (modified) (1 diff)
-
plugins/plugin-directory/class-ability-base.php (modified) (2 diffs)
-
plugins/plugin-directory/prompts/class-address-review-feedback.php (modified) (1 diff)
-
plugins/plugin-directory/tools/class-get-plugin-status.php (added)
-
plugins/plugin-directory/tools/class-validate-readme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/class-registrar.php
r14709 r14710 56 56 // Tools. 57 57 Plugin_Directory\Tools\Validate_Readme::register(); 58 Plugin_Directory\Tools\Get_Plugin_Status::register(); 58 59 59 60 // Prompts. -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory/class-ability-base.php
r14709 r14710 28 28 29 29 /** 30 * Register the plugin-directory autoloader if it hasn't been loaded yet.30 * Blog ID for the plugin directory (wordpress.org/plugins) in the multisite network. 31 31 * 32 * This is needed when abilities reference classes from the plugin-directory 33 * plugin (e.g. Readme\Validator, Trademarks) that may not be autoloaded yet. 32 * @var int 33 */ 34 const PLUGINS_BLOG_ID = 367; 35 36 /** 37 * Load the plugin-directory autoloader and switch to the plugins blog. 38 * 39 * Registers the plugin-directory autoloader so abilities can reference classes 40 * like Readme\Validator and Trademarks, and switches to the plugins blog so 41 * queries run against the correct posts table. 34 42 */ 35 43 protected static function maybe_load_plugin_directory(): void { … … 51 59 WP_PLUGIN_DIR . '/plugin-directory' 52 60 ); 61 62 switch_to_blog( self::PLUGINS_BLOG_ID ); 53 63 54 64 $loaded = true; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory/prompts/class-address-review-feedback.php
r14703 r14710 60 60 Help me address the review feedback for my plugin `{$plugin_slug}` submitted to the WordPress.org plugin directory. 61 61 62 ## Step 1: Fetch Review Feedback62 ## Step 1: Fetch Plugin Status and Review Feedback 63 63 64 Use the `wporg/ get-review-feedback` tool with slug `{$plugin_slug}` to retrieve the reviewer's feedback.64 Use the `wporg/plugins/plugin-directory/get-plugin-status` tool with slug `{$plugin_slug}` to retrieve the latest reviewer feedback. If the plugin status is not "pending", there is no actionable feedback to address. 65 65 66 66 ## Step 2: Parse Each Issue -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory/tools/class-validate-readme.php
r14709 r14710 40 40 'required' => array( 'content' ), 41 41 ), 42 'output_schema' => array( 43 'type' => 'object', 44 'properties' => array( 45 'errors' => array( 46 'type' => 'object', 47 'description' => 'Validation errors that must be fixed before submission.', 48 'additionalProperties' => array( 'type' => 'string' ), 49 ), 50 'warnings' => array( 51 'type' => 'object', 52 'description' => 'Warnings that should be reviewed and fixed if applicable.', 53 'additionalProperties' => array( 'type' => 'string' ), 54 ), 55 'notes' => array( 56 'type' => 'object', 57 'description' => 'Informational notes and suggestions.', 58 'additionalProperties' => array( 'type' => 'string' ), 59 ), 60 ), 61 ), 42 62 'execute_callback' => array( __CLASS__, 'execute' ), 43 63 'permission_callback' => '__return_true', 44 64 'meta' => array( 45 65 'mcp' => array( 'type' => 'tool' ), 46 'annotations' => array( 'readonly' => true ), 66 'annotations' => array( 67 'readonly' => true, 68 'idempotent' => true, 69 'destructive' => false, 70 ), 47 71 ), 48 72 )
Note: See TracChangeset
for help on using the changeset viewer.