Changeset 31323 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 02/02/2015 04:49:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r31292 r31323 1153 1153 1154 1154 // Hack: get_permalink() would return ugly permalink for drafts, so we will fake that our post is published. 1155 if ( in_array( $post->post_status, array( 'draft', 'pending' ) ) ) {1155 if ( in_array( $post->post_status, array( 'draft', 'pending', 'future' ) ) ) { 1156 1156 $post->post_status = 'publish'; 1157 1157 $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.