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

Fix WP-CLI global --path collisions in markdown import/export

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
php
領域
cli

調査の方向性

markdown-database-integration.php と inc/class-wp-markdown-cli.php のコマンドドキュメントから始め、次に wp --path= markdown-db import と export で警告を再現します。文書化されている content-root オプションを一貫して更新し、登録レベルの CLI テストを追加します。完了条件は、両方のコマンドがグローバルオプションに関する警告なしで登録され、明示的な content-root の選択が維持されることです。

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

説明

Problem

Every WP-CLI invocation on an installation with Markdown Database Integration active emits registration warnings for both markdown-db import and markdown-db export because each command declares a custom --path argument, which conflicts with WP-CLI global WordPress-root selector.

This was reproduced with a read-only wp intelligence --help invocation. The warnings are unrelated to the requested command and occur during plugin command registration.

Evidence

markdown-database-integration.php registers markdown-db import and markdown-db export during WP-CLI bootstrap. Their command documentation in inc/class-wp-markdown-cli.php declares [--path=] for a Markdown content root. WP-CLI also reserves global --path= for the WordPress installation root, producing the warning for both registrations.

Acceptance criteria

  • Import and export use a non-conflicting, consistently named content-root option.
  • wp --path= markdown-db import and export register without warnings and retain explicit content-root selection.
  • Command help and examples document the global root selector separately from the content-root option.
  • Add a registration-level CLI test that fails on global-option collisions for these commands.

AI assistance

OpenAI gpt-5.6-terra via OpenCode reproduced the sanitized bootstrap warnings, inspected the installed runtime and repository registration paths, checked existing Markdown Database Integration trackers, and drafted this report under Chris Huber direction.

主要言語
PHP
スター
5
フォーク
1
平均マージ
1時間 41分
マージ済み PR(30日)
159

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Automattic/markdown-database-integration のほかの issue

Automattic/markdown-database-integration の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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