Changeset 14462
- Timestamp:
- 05/05/2010 07:37:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r14461 r14462 1074 1074 global $wpdb; 1075 1075 $post = &get_post($id); 1076 $orig_permalink = sanitize_title($post->post_title); 1076 1077 1077 list($permalink, $post_name) = get_sample_permalink($post->ID, $new_title, $new_slug); 1078 1078 … … 1114 1114 } else { 1115 1115 $post_name_abridged = $post_name; 1116 }1117 }1118 1119 if ( $orig_permalink != $post_name_abridged && !$post->post_name ) {1120 //check if post is trashed1121 $orig_ID = $wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_name = %s AND post_status='trash';",$orig_permalink));1122 if ( $orig_ID ) {1123 ?>1124 <div id="message" class="error">1125 <?php echo sprintf( __('There was a permalink conflict with an item in the trash. <a href="$1%s">View Trash</a>'), 'edit.php?post_status=trash&post_type='.$post->post_type ); ?>1126 </div>1127 <?php1128 1116 } 1129 1117 }
Note: See TracChangeset
for help on using the changeset viewer.