mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-19 10:44:24 +00:00
Customize: Align behavior of WP_Customize_Manager::save_changeset_post() with wp_insert_post() by setting status to future if supplied status is publish but date is future.
Props dlh. Fixes #41336. git-svn-id: https://develop.svn.wordpress.org/trunk@41372 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2272,6 +2272,10 @@ final class WP_Customize_Manager {
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! empty( $is_future_dated ) && 'publish' === $args['status'] ) {
|
||||
$args['status'] = 'future';
|
||||
}
|
||||
|
||||
// The request was made via wp.customize.previewer.save().
|
||||
$update_transactionally = (bool) $args['status'];
|
||||
$allow_revision = (bool) $args['status'];
|
||||
|
||||
Reference in New Issue
Block a user