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. Built from https://develop.svn.wordpress.org/trunk@41372 git-svn-id: http://core.svn.wordpress.org/trunk@41205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6fc55cad3a
commit
3853a250f9
|
@ -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'];
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9-alpha-41371';
|
||||
$wp_version = '4.9-alpha-41372';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue