Make WordPress Core

Changeset 56022

Timestamp:
06/25/2023 03:18:12 PM (14 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.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/inline-edit-post.js

    r55560 r56022  
    450450
    451451        fields = $('#edit-'+id).find(':input').serialize();
     452
     453
     454
     455
     456
     457
     458
    452459        params = fields + '&' + $.param(params);
    453460
  • trunk/src/wp-admin/includes/post.php

    r55988 r56022  
    168168            break;
    169169        }
     170
     171
     172
     173
    170174    }
    171175
  • trunk/tests/phpunit/tests/ajax/wpAjaxInlineSave.php

    r54722 r56022  
    8888        $this->assertSameSets( array( $t2 ), wp_list_pluck( $post_terms_2, 'term_id' ) );
    8989    }
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
     100
     101
     102
     103
     104
     105
     106
     107
     108
     109
     110
     111
     112
     113
     114
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
    90145}
Note: See TracChangeset for help on using the changeset viewer.