Skip to content

Plugin check compliance#13

Open
MahamadSayed wants to merge 7 commits into
migratestore-wp7-readinessfrom
plugin-check-compliance
Open

Plugin check compliance#13
MahamadSayed wants to merge 7 commits into
migratestore-wp7-readinessfrom
plugin-check-compliance

Conversation

@MahamadSayed

Copy link
Copy Markdown
Collaborator

Fixes for the errors from #12

MahamadSayed and others added 7 commits June 29, 2026 01:19
…ning

Add a minimal phpcs.xml.dist ruleset that excludes lib/ (composer
vendor-dir per composer.json) so `wp plugin check` and PHPCS stop
reporting unfixable third-party errors from vendored dependencies.

lib/ is intentionally NOT added to .distignore - it is required at
runtime and must ship with the plugin. The new ruleset is added to
.distignore so the dev lint config is not published to the wordpress.org
SVN, consistent with the existing phpcs.ruleset.xml / phpunit.xml.dist
entries.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…on()

Wrap the "Cannot open <$zip_path>" exit string with esc_html() to satisfy
WordPress.Security.EscapeOutput, which treats die()/exit() string output as
output requiring escaping when it interpolates a dynamic value.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…andler

The @mkdir() call in handle_import_action() tripped
WordPress.WP.AlternativeFunctions.file_system_operations_mkdir. Use the core
wp_mkdir_p() wrapper instead, which is not flagged by the sniff and already
returns true when the directory exists or is successfully created, making the
surrounding is_dir() guards redundant.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant