Incorrect format for options on plugin update page

未關閉 適合新手
#572 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1 小時以內
新手友好度
83/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
php, wordpress
領域
cli, documentation

研究方向

issue 連結到 developer.wordpress.org/cli/commands/plugin/update/ 上的外掛更新指令頁面。首先,根據指令範例和回報的成功呼叫方式檢查文件中的版本選項。更新選項格式,使其符合 issue 中顯示的雙連字號形式;頁面記載 --version=<version> 後即完成。

由索引模型根據 Issue 內容生成。

描述

bug command:plugin-update scope:documentation

https://developer.wordpress.org/cli/commands/plugin/update/

Current page states:
–version=

should be:
–-version=

user@server:~/public_html$ wp plugin update wordfence -version=9.1.1
Warning: The '-version=9.1.1' plugin could not be found.
Error: No plugins updated (1 failed).
user@server:~/public_html$ wp plugin update wordfence --version=9.1.1
Installing Wordfence Security – Firewall, Malware Scan, and Login Security (9.1.1)
Downloading installation package from https://downloads.wordpress.org/plugin/wordfence.9.1.1.zip...
Unpacking the package...
Installing the plugin...
Removing the old version of the plugin...
Plugin updated successfully.
Success: Installed 1 of 1 plugins.
user@server:~/public_html$ 
主要語言
Gherkin
星號
90
分支
87
平均合併
2 天 7 小時
30 天內合併 PR
3

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

wp-cli/extension-command 的其他 Issue

查看 wp-cli/extension-command 的全部 Issue

相似的 Issue

更多 CLI Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。