Quick/Bulk Edit: Fix inability to quick edit draft post date.
Follow up to [56022] to fix inability to set a date/time in quick editing. Allow a user to set a quick/edit date while preventing accidental date assignments per the original intent. Props tristanleboss, ivanzhuck, tibbsa, sabernhardt, sergeybiryukov, oandregal, khokansardar, joedolson, shailu25. Fixes #59125. See #19907. Built from https://develop.svn.wordpress.org/trunk@56802 git-svn-id: http://core.svn.wordpress.org/trunk@56314 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -491,13 +491,6 @@ window.wp = window.wp || {};
|
||||
};
|
||||
|
||||
fields = $('#edit-'+id).find(':input').serialize();
|
||||
|
||||
var status = $(':input[name="_status"]').val();
|
||||
|
||||
if ( [ 'draft', 'pending', 'auto-draft' ].includes( status ) ) {
|
||||
params.edit_date = 'false';
|
||||
}
|
||||
|
||||
params = fields + '&' + $.param(params);
|
||||
|
||||
// Make Ajax request.
|
||||
|
||||
2
wp-admin/js/inline-edit-post.min.js
vendored
2
wp-admin/js/inline-edit-post.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user