WordPress.org

Make WordPress Core

Changeset 2426


Ignore:
Timestamp:
03/10/2005 03:01:45 AM (13 years ago)
Author:
ryan
Message:

Don't make post slug sticky until the post is published. http://mosquito.wordpress.org/view.php?id=531

File:
1 edited

Legend:

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

    r2401 r2426  
    105105    $post_ID = $id_result->Auto_increment;
    106106
    107     if ( empty($post_name) ) {
     107    if ( empty($post_name) || 'draft' == $post_status ) {
    108108        $post_name = sanitize_title($post_title, $post_ID);
    109109    } else {
     
    309309        $post_status = 'draft';
    310310
    311     if (empty($post_name)) {
     311    if (empty($post_name) || 'draft' == $post_status ) {
    312312        $post_name = sanitize_title($post_title, $post_ID);
    313313    } else {
Note: See TracChangeset for help on using the changeset viewer.