Make WordPress Core

Changeset 56123

Timestamp:
07/02/2023 08:02:45 AM (13 months ago)
Author:
audrasjb
Message:

Quick/Bulk Edit: Ensure scheduled posts are published when using Bulk Edit.

This changeset ensures scheduled posts are actually published when changing their status to "Published" using bulk edit. Also adds related unit tests.

Props siobhan, Clorith, webcommsat, cadic, oglekler, audrasjb, pavanpatil1.
Fixes #31635.

Location:
trunk
Files:
2 edited

Legend:

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

    r56091 r56123  
    668668        // Prevent wp_insert_post() from overwriting post format with the old data.
    669669        unset( $post_data['tax_input']['post_format'] );
     670
     671
     672
     673
     674
     675
     676
     677
     678
    670679
    671680        $post_id = wp_update_post( $post_data );
  • trunk/tests/phpunit/tests/admin/includesPost.php

    r56091 r56123  
    292292        $this->assertSame( 'aside', get_post_format( $post_ids[1] ) );
    293293        $this->assertFalse( get_post_format( $post_ids[2] ) );
     294
     295
     296
     297
     298
     299
     300
     301
     302
     303
     304
     305
     306
     307
     308
     309
     310
     311
     312
     313
     314
     315
     316
     317
     318
     319
     320
     321
     322
     323
     324
     325
     326
     327
     328
     329
     330
     331
     332
     333
     334
     335
     336
     337
     338
     339
     340
     341
     342
     343
     344
     345
     346
     347
     348
     349
     350
     351
     352
     353
     354
     355
     356
     357
     358
     359
    294360    }
    295361
Note: See TracChangeset for help on using the changeset viewer.