Changeset 14124 for trunk/wp-admin/includes/post.php
- Timestamp:
- 04/18/2010 01:46:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r14118 r14124 1028 1028 } 1029 1029 1030 $post->post_name = wp_unique_post_slug($post->post_name, $post->ID, $post->post_status, $post->post_type, $post->post_parent);1031 1032 1030 // If the user wants to set a new name -- override the current one 1033 1031 // Note: if empty name is supplied -- use the title instead, see #6072 1034 1032 if ( !is_null($name) ) 1035 1033 $post->post_name = sanitize_title($name ? $name : $title, $post->ID); 1034 1035 $post->post_name = wp_unique_post_slug($post->post_name, $post->ID, $post->post_status, $post->post_type, $post->post_parent); 1036 1036 1037 1037 $post->filter = 'sample';
Note: See TracChangeset
for help on using the changeset viewer.