Changeset 60701
- Timestamp:
- 09/02/2025 04:48:32 PM (6 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
src/wp-admin/includes/post.php (modified) (1 diff)
-
tests/phpunit/tests/admin/includesPost.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r60681 r60701 769 769 'post_status' => 'auto-draft', 770 770 ), 771 false,771 e, 772 772 false 773 773 ); 774 $post = get_post( $post_id ); 774 775 if ( is_wp_error( $post_id ) ) { 776 wp_die( $post_id->get_error_message() ); 777 } 778 779 $post = get_post( $post_id ); 780 775 781 if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post->post_type, 'post-formats' ) && get_option( 'default_post_format' ) ) { 776 782 set_post_format( $post, get_option( 'default_post_format' ) ); 777 783 } 784 778 785 wp_after_insert_post( $post, false, null ); 779 786 -
trunk/tests/phpunit/tests/admin/includesPost.php
r58360 r60701 533 533 534 534 $this->assertSame( 1, $action->get_call_count() ); 535 536 537 538 539 540 541 542 543 544 545 546 547 548 535 549 } 536 550
Note: See TracChangeset
for help on using the changeset viewer.