Make WordPress Core


Ignore:
Timestamp:
04/18/2010 01:46:28 AM (15 years ago)
Author:
dd32
Message:

Display the correct Slug in the permalink preview. Props duck_. Fixes #12870

File:
1 edited

Legend:

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

    r14118 r14124  
    10281028    }
    10291029
    1030     $post->post_name = wp_unique_post_slug($post->post_name, $post->ID, $post->post_status, $post->post_type, $post->post_parent);
    1031 
    10321030    // If the user wants to set a new name -- override the current one
    10331031    // Note: if empty name is supplied -- use the title instead, see #6072
    10341032    if ( !is_null($name) )
    10351033        $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);
    10361036
    10371037    $post->filter = 'sample';
Note: See TracChangeset for help on using the changeset viewer.