Centralize usage of `Runtime_Environment_Setup`

未关闭
#128 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
停滞
技术栈
php
领域
tooling

调研方向

首先阅读 Admin_AJAX、Plugin_Check_Command 和 Runtime_Environment_Setup,比较每个类如何执行设置以及对 Runtime_Check 实例的检查。确定一种两个入口点都可以使用的共享方法,且无需重复这部分逻辑。完成的标准是:重复的设置和 Runtime_Check 检查已集中处理,并且两个类继续支持现有检查。

由索引模型根据 Issue 内容生成。

描述

[Type] Enhancement Code Quality
Is your enhancement related to a problem? Please describe.

Both the Admin_AJAX and Plugin_Check_Command class currently manually use the Runtime_Environment_Setup class, and both of them for that reason also have a check whether any of the checks is a Runtime_Check.

This is not very clean and we should explore ways to consolidate that code in one place in a way that both Admin_AJAX and Plugin_Check_Command can use it.

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
主要语言
PHP
星标
365
派生
135
平均合并
1 天 8 小时
30 天内合并 PR
20

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

WordPress/plugin-check 的其他 Issue

查看 WordPress/plugin-check 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。