Changeset 10007
- Timestamp:
- 12/02/2008 02:46:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r9986 r10007 901 901 if (in_array($post->post_status, array('draft', 'pending'))) { 902 902 $post->post_status = 'publish'; 903 $post->post_date = date('Y-m-d H:i:s');904 903 $post->post_name = sanitize_title($post->post_name? $post->post_name : $post->post_title, $post->ID); 905 904 }
Note: See TracChangeset
for help on using the changeset viewer.