Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#401 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu với markdown-database-integration.php và tài liệu lệnh trong inc/class-wp-markdown-cli.php, sau đó tái hiện các cảnh báo bằng wp --path= markdown-db import và export. Cập nhật nhất quán tùy chọn content-root được ghi trong tài liệu và thêm một bài kiểm thử CLI ở cấp đăng ký; được xem là hoàn tất khi cả hai lệnh đều được đăng ký mà không có cảnh báo về tùy chọn toàn cục, đồng thời vẫn giữ việc chọn content-root rõ ràng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
PHP
Star
5
Fork
1
Merge trung bình
2 giờ 37 phút
Pull request đã merge (30 ngày)
80

Chuẩn bị môi trường

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Automattic/markdown-database-integration

Tất cả issue của Automattic/markdown-database-integration

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.