Make WordPress Core


Ignore:
Timestamp:
06/25/2023 03:18:12 PM (12 months ago)
Author:
joedolson
Message:

Quick/Bulk Edit: Don't set publish date when editing drafts.

Ensure that quick edit does not define a publish date if the post status is one of 'draft', 'pending', or 'auto-draft'.

Props uxtremist, SergeyBiryukov, Denis-de-Bernardy, jane, rfischmann, mista-flo, rutviksavsani, oglekler, joedolson.
Fixes #19907.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r55988 r56022  
    168168            break;
    169169        }
     170    }
     171
     172    if ( isset( $post_data['edit_date'] ) && 'false' === $post_data['edit_date'] ) {
     173        $post_data['edit_date'] = false;
    170174    }
    171175
Note: See TracChangeset for help on using the changeset viewer.