Skip to content

fix: address Plugin Check errors for directory submission#6

Merged
josephfusco merged 1 commit intomainfrom
fix/plugin-check
Apr 5, 2026
Merged

fix: address Plugin Check errors for directory submission#6
josephfusco merged 1 commit intomainfrom
fix/plugin-check

Conversation

@josephfusco
Copy link
Copy Markdown
Collaborator

Add readme.txt with required WordPress.org headers (Tested up to, Stable Tag, License). Replace deprecated get_page_by_title() with WP_Query in demo seeder. Add ABSPATH guards to db-viewer.php and demo-seeder.php. Add .claude to .distignore.

Add readme.txt with required WordPress.org headers (Tested up to,
Stable Tag, License). Replace deprecated get_page_by_title() with
WP_Query in demo seeder. Add ABSPATH guards to db-viewer.php and
demo-seeder.php. Add .claude to .distignore.
@josephfusco josephfusco marked this pull request as ready for review April 5, 2026 19:42
@josephfusco josephfusco requested a review from Copilot April 5, 2026 19:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR resolves WordPress.org “Plugin Check” issues to support directory submission by adding the required plugin readme headers and hardening a couple of utility entrypoints against direct access.

Changes:

  • Add readme.txt with required WordPress.org plugin directory headers (and initial content).
  • Replace deprecated get_page_by_title() usage in the e2e demo seeder with a WP_Query lookup.
  • Add ABSPATH guards for direct-file access prevention and update packaging ignore list.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/e2e/demo-seeder.php Adds ABSPATH guard and replaces deprecated title lookup with WP_Query when ensuring demo posts exist.
tests/bootstrap.php Adds an inline PHPCS suppression for CLI-only echo before WordPress loads.
readme.txt Introduces WordPress.org-compliant plugin readme headers and basic documentation.
includes/db-viewer.php Adds ABSPATH guard to prevent direct access.
.distignore Excludes .claude from distribution artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@josephfusco josephfusco merged commit ee2f027 into main Apr 5, 2026
8 checks passed
@josephfusco josephfusco deleted the fix/plugin-check branch April 6, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants