Conversation
This field never existed.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
I think this is meant to be manually created based on the slug: extension-command/src/WP_CLI/CommandWithUpgrade.php Lines 850 to 860 in 67129ca Edit: I see the bug...when it does this check will then never pass: this fixes it: diff --git a/src/WP_CLI/CommandWithUpgrade.php b/src/WP_CLI/CommandWithUpgrade.php
index 798d8ca9..ff5fd214 100755
--- a/src/WP_CLI/CommandWithUpgrade.php
+++ b/src/WP_CLI/CommandWithUpgrade.php
@@ -854,8 +854,8 @@ abstract class CommandWithUpgrade extends \WP_CLI_Command {
// Add `url` for plugin or theme on wordpress.org.
foreach ( $items as $index => $item_object ) {
- if ( $item_object instanceof \stdClass ) {
- $item_object->url = "https://wordpress.org/{$plural}/{$item_object->slug}/";
+ if ( is_array( $item_object ) ) {
+ $items[ $index ]['url'] = "https://wordpress.org/{$plural}/{$item_object['slug']}/";
} |
This reverts commit 383c307.
Props mrsdizzie
|
Oooh that makes a lot of sense! 6dd2924 does this and it works like a charm. Thank you! |
url field from plugin command docsurl field in plugin search
|
Turns out it's a |
Fixes #470