Automattic / Automattic/VIP-Coding-Standards
using curl should suggest using vip_safe_wp_remote_get instead of wp_remote_get
オープン
Status: Awaiting feedback
- 主要言語
- PHP
- スター
- 261
- フォーク
- 44
- 平均マージ
- 19分
- マージ済み PR(30日)
- 1
説明
## What problem would the enhancement address for VIP?
When using `curl` the suggested fix is to use `wp_remote_get`, however, `wp_remote_get` is discouraged and `vip_safe_wp_remote_get` is suggested instead.
## Describe the solution you'd like
Suggest the use of `vip_safe_wp_remote_get` when using `curl` to avoid a secondary violation for using `wp_remote_get`
コントリビューションガイド
調査の方向性
ファイルやテストは指定されていません。curl の使用を報告し、現在は wp_remote_get を推奨している PHP_CodeSniffer ルールを特定し、その既存のテストカバレッジを確認してください。診断が代わりに vip_safe_wp_remote_get を推奨し、二次的な wp_remote_get 違反を引き起こさなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php, wordpress
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100