Fix WP-CLI global --path collisions in markdown import/export
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
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Automattic/markdown-database-integration
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Automattic/markdown-database-integration#424 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
Automattic/markdown-database-integration#420 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Native scans use memory proportional to row count, and retired generations are never collectedĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Automattic/markdown-database-integration#415 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
Automattic/markdown-database-integration#414 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
Automattic/markdown-database-integration#377 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Automattic/markdown-database-integration
Issue tương tự
-
domain/crm-after-sales Platform(Default) priority/high
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 2 ngày
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Перевод устарел
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
component/code document/settings documents duplicate integration/wc/pages/cart integration/woocommerce mod* mod/b* mod/c* mod/d* mod/e* mod/i* product/pro status/needs-feedback
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
elementor/elementor#37475 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày