This PR uses an empty string as the default value for the --post_date and --post_date_gmt parameters of wp generate posts.
This will align with the behavior of wp_insert_post and use the current time for the generated posts when a date is not provided. If a date is provided, it's passed down to wp_insert_post.
This PR uses an empty string as the default value for the
--post_date
and--post_date_gmt
parameters ofwp generate posts
. This will align with the behavior ofwp_insert_post
and use the current time for the generated posts when a date is not provided. If a date is provided, it's passed down towp_insert_post
.Closes https://github.com/wp-cli/entity-command/issues/268 Related https://github.com/wp-cli/wp-cli/issues/5832