Changeset 58174 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 05/20/2024 09:47:41 AM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r58129 r58174 1464 1464 1465 1465 // Hack: get_permalink() would return plain permalink for drafts, so we will fake that our post is published. 1466 if ( in_array( $post->post_status, array( ' draft', 'pending', 'future' ), true ) ) {1466 if ( in_array( $post->post_status, array( 'auto-draft', 'draft', 'pending', 'future' ), true ) ) { 1467 1467 $post->post_status = 'publish'; 1468 1468 $post->post_name = sanitize_title( $post->post_name ? $post->post_name : $post->post_title, $post->ID );
Note: See TracChangeset
for help on using the changeset viewer.