WordPress.org

Make WordPress Core

Changeset 14462


Ignore:
Timestamp:
05/05/10 07:37:51 (4 years ago)
Author:
westi
Message:

Remove the trash warning on permalinks for now as the current implementation doesn't work very well. See #11863

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r14461 r14462  
    10741074    global $wpdb; 
    10751075    $post = &get_post($id); 
    1076     $orig_permalink = sanitize_title($post->post_title); 
     1076 
    10771077    list($permalink, $post_name) = get_sample_permalink($post->ID, $new_title, $new_slug); 
    10781078 
     
    11141114        } else { 
    11151115            $post_name_abridged = $post_name; 
    1116         } 
    1117     } 
    1118  
    1119     if ( $orig_permalink != $post_name_abridged && !$post->post_name ) { 
    1120         //check if post is trashed 
    1121         $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&amp;post_type='.$post->post_type ); ?> 
    1126             </div> 
    1127             <?php 
    11281116        } 
    11291117    } 
Note: See TracChangeset for help on using the changeset viewer.