Changeset 24206 for trunk/wp-admin/includes/ajax-actions.php
- Timestamp:
- 05/08/2013 09:26:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r24205 r24206 1353 1353 $data['ping_status'] = 'closed'; 1354 1354 1355 // Hack: wp_unique_post_slug() doesn't work for drafts, so we will fake that our post is published. 1356 if ( ! empty( $data['post_name'] ) && in_array( $post['post_status'], array( 'draft', 'pending' ) ) ) { 1357 $post['post_status'] = 'publish'; 1358 $data['post_name'] = wp_unique_post_slug( $data['post_name'], $post['ID'], $post['post_status'], $post['post_type'], $post['post_parent'] ); 1359 } 1360 1355 1361 // update the post 1356 1362 edit_post();
Note: See TracChangeset
for help on using the changeset viewer.