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 分钟
- 30 天内合并 PR
- 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