Quick/Bulk Edit: Show scheduled in status for future drafts.
Change the quick edit status `select` to use the 'Scheduled' status instead of the 'Published' status or posts where the date is in the future. Props ipstenu, MrFlannagan, sabernhardt, oglekler. Fixes #38834. Built from https://develop.svn.wordpress.org/trunk@55560 git-svn-id: http://core.svn.wordpress.org/trunk@55072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
123b819f4f
commit
514460e505
|
@ -376,9 +376,14 @@ window.wp = window.wp || {};
|
|||
});
|
||||
|
||||
// Handle the post status.
|
||||
var post_date_string = $(':input[name="aa"]').val() + '-' + $(':input[name="mm"]').val() + '-' + $(':input[name="jj"]').val();
|
||||
post_date_string += ' ' + $(':input[name="hh"]').val() + ':' + $(':input[name="mn"]').val() + ':' + $(':input[name="ss"]').val();
|
||||
var post_date = new Date( post_date_string );
|
||||
status = $('._status', rowData).text();
|
||||
if ( 'future' !== status ) {
|
||||
if ( 'future' !== status && Date.now() > post_date ) {
|
||||
$('select[name="_status"] option[value="future"]', editRow).remove();
|
||||
} else {
|
||||
$('select[name="_status"] option[value="publish"]', editRow).remove();
|
||||
}
|
||||
|
||||
pw = $( '.inline-edit-password-input' ).prop( 'disabled', false );
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-55559';
|
||||
$wp_version = '6.3-alpha-55560';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue