Update MIGRATION.md

This commit is contained in:
Tetrakern 2024-08-06 12:47:40 +02:00
parent 2b2a849c1d
commit ee2c50b4ba

View File

@ -49,7 +49,11 @@ function fictioneer_migrate_chapters( $query_args = [], $story_args = [], $previ
// Found any?
if ( ! $query->have_posts() ) {
wp_die( 'No matching posts found.' );
if ( $preview ) {
wp_die( 'No matching posts found.' );
} else {
return;
}
}
// Preview?