Changeset 50282 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 02/10/2021 05:38:23 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r50255 r50282 1358 1358 $original_name = $post->post_name; 1359 1359 1360 // Hack: get_permalink() would return uglypermalink for drafts, so we will fake that our post is published.1360 // Hack: get_permalink() would return plain permalink for drafts, so we will fake that our post is published. 1361 1361 if ( in_array( $post->post_status, array( 'draft', 'pending', 'future' ), true ) ) { 1362 1362 $post->post_status = 'publish';
Note: See TracChangeset
for help on using the changeset viewer.