Update MIGRATION.md
This commit is contained in:
parent
2b2a849c1d
commit
ee2c50b4ba
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user