Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Question about a PCP Warning

オープン
#1,475 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php
領域
tooling

調査の方向性

まず、plugin_header_requires_plugins_not_in_directory 警告をたどり、その文言を説明されている WordPress の有効化動作と比較します。警告が非公開プラグインを対象としたものか確認します。完了の定義は、存在しない問題を示唆することなく、ディレクトリチェックを正確に説明する文言または動作になっていることです。

索引モデルが issue の本文から書いたものです。

説明

I have a couple of Custom/Private Plugins which use the 'required by'/'requires' feature in the headers.

PCB now gives the following warning for the plugin with 'requires' in the header which I do not understand.

Warning
– plugin_header_requires_plugins_not_in_directory
– The plugin declares "xxxx-xxxx" as a required plugin, but it could not be found in the WordPress.org plugin directory

The 'required by' plugin is installed and activated together with the 'requires' plugin and both work correctly.

Wordpress will not allow the 'required by' plugin to be activated unless the other is activated. The order of deactivation and deletion is also controlled.

Wordpress gives relevant information/guidance and warning messages on the plugins page for each stage of activation and deletion.

PCP isn't checking if the 'requires' plugin is installed or activated so what is this warning message for and why is it needed ?

The inference is that something is wrong because the plugin could not be found. This is misleading for an end user who might waste time chasing a non-existent problem.

主要言語
PHP
スター
365
フォーク
127
平均マージ
1日 8時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

WordPress/plugin-check のほかの issue

WordPress/plugin-check の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。