Skip to content

Conversation

swissspidy
Copy link
Member

Fixes #97

@swissspidy swissspidy force-pushed the fix/97-rewrite-urls branch 2 times, most recently from 5e9ad9c to 2e6607d Compare October 4, 2025 20:32
@swissspidy swissspidy marked this pull request as ready for review October 4, 2025 20:32
@swissspidy swissspidy requested a review from a team as a code owner October 4, 2025 20:32
@swissspidy
Copy link
Member Author

FYI @adamziel

@swissspidy swissspidy force-pushed the fix/97-rewrite-urls branch from 2e6607d to 16327a1 Compare October 4, 2025 20:34
Copy link

codecov bot commented Oct 4, 2025

Codecov Report

❌ Patch coverage is 86.66667% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/Import_Command.php 86.66% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@adamziel
Copy link

adamziel commented Oct 8, 2025

This is great @swissspidy ❤️

$GLOBALS['wpcli_import_current_file'] = basename( $file );
$wp_import->import( $file );

$reflection = new \ReflectionMethod( $wp_import, 'import' );
Copy link

Choose a reason for hiding this comment

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

Should we expose the version number from the plugin to make this easier? I guess this is still safer since, theoretically, that argument may be removed in a future plugin version — although I don't expect that to ever happen as it would break the bc.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I think the current method is fine.

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.

Add flag to enable URL rewriting

2 participants