Changeset 14725
- Timestamp:
- 03/17/2026 03:06:51 PM (4 weeks ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory
- Files:
-
- 6 edited
-
class-ability-base.php (modified) (1 diff)
-
prompts/class-address-review-feedback.php (modified) (1 diff)
-
prompts/class-prepare-plugin.php (modified) (1 diff)
-
resources/class-plugin-check-guide.php (modified) (2 diffs)
-
tools/class-submit-plugin.php (modified) (1 diff)
-
tools/class-validate-readme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory/class-ability-base.php
r14710 r14725 37 37 * Load the plugin-directory autoloader and switch to the plugins blog. 38 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. 39 * Permanently switches to the plugins blog for the remainder of the request. 40 * All plugin-directory abilities expect to run in this context. 42 41 */ 43 42 protected static function maybe_load_plugin_directory(): void { -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory/prompts/class-address-review-feedback.php
r14710 r14725 80 80 ## Step 4: Re-validate 81 81 82 After all fixes: 83 1. Re-run Plugin Check locally to ensure no new issues were introduced: 84 ```bash 85 wp plugin check {$plugin_slug} --categories=plugin_repo --format=json --error-severity=7 --warning-severity=6 --include-low-severity-errors --exclude-checks=prefixing 86 ``` 87 2. Review the fixes against `wporg://plugins/plugin-directory/plugin-guidelines` 82 After all fixes, use the `wporg/plugins/plugin-directory/run-plugin-check` prompt with the plugin path to re-run Plugin Check and ensure no new issues were introduced. 83 84 Review the fixes against `wporg://plugins/plugin-directory/plugin-guidelines`. 88 85 89 86 ## Step 5: Resubmit -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory/prompts/class-prepare-plugin.php
r14709 r14725 93 93 ## Step 4: Run Plugin Check Locally 94 94 95 Run the Plugin Check (PCP) plugin locally using WP-CLI: 95 Use the `wporg/plugins/plugin-directory/run-plugin-check` prompt with plugin_path `{$plugin_path}` to run and resolve all Plugin Check issues. 96 96 97 ```bash 98 wp plugin check {$plugin_path} --categories=plugin_repo --format=json --error-severity=7 --warning-severity=6 --include-low-severity-errors --exclude-checks=prefixing 99 ``` 100 101 If PCP is not installed, install it first: `wp plugin install plugin-check --activate` 102 103 Fix all ERRORs before proceeding. See `wporg://plugins/plugin-directory/plugin-check-guide` for details. 97 Fix all ERRORs before proceeding. 104 98 105 99 ## Step 5: Check Slug Availability -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory/resources/class-plugin-check-guide.php
r14712 r14725 10 10 namespace WordPressdotorg\Abilities\Plugins\Plugin_Directory\Resources; 11 11 12 use WordPressdotorg\Abilities\Plugins\Plugin_Directory\Ability_Base; 13 12 14 defined( 'ABSPATH' ) || exit; 13 15 … … 15 17 * Plugin_Check_Guide class. 16 18 */ 17 class Plugin_Check_Guide {19 class Plugin_Check_Guide extends Ability_Base { 18 20 19 21 /** -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory/tools/class-submit-plugin.php
r14724 r14725 52 52 'zip_url' => array( 53 53 'type' => 'string', 54 'format' => 'uri', 54 55 'description' => 'URL to download the plugin ZIP from. Must be a publicly accessible HTTPS URL ending in .zip. Preferred for larger plugins. Provide exactly one of zip_url or zip_base64.', 55 56 ), -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory/tools/class-validate-readme.php
r14712 r14725 35 35 'content' => array( 36 36 'type' => 'string', 37 'description' => 'The full text content of the readme.txt or readme.md file to validate. ',37 'description' => 'The full text content of the readme.txt or readme.md file to validate. Provide either content or url, not both.', 38 38 ), 39 39 'url' => array( 40 40 'type' => 'string', 41 'description' => 'URL to a readme.txt or readme.md file to fetch and validate. Must end in readme.txt or readme.md.', 41 'format' => 'uri', 42 'description' => 'URL to a readme.txt or readme.md file to fetch and validate. Must end in readme.txt or readme.md. Provide either url or content, not both.', 42 43 ), 43 44 ),
Note: See TracChangeset
for help on using the changeset viewer.