Changeset 2109

Show
Ignore:
Timestamp:
01/20/05 05:18:55 (4 years ago)
Author:
rboren
Message:

If post title is not provided, we still need to have a sanitized name for use in permalinks. Use the post id. Bug 717.

Files:

Legend:

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

    r2062 r2109  
    8686 
    8787    if ( empty($post_name) ) { 
    88         if ( !empty($post_title) ) 
    8988            $post_name = sanitize_title($post_title, $post_ID); 
    9089    } else { 
     
    269268 
    270269    if (empty($post_name)) { 
    271         if (! empty($post_title)) { 
    272             $post_name = sanitize_title($post_title, $post_ID); 
    273         } 
     270        $post_name = sanitize_title($post_title, $post_ID); 
    274271    } else { 
    275272        $post_name = sanitize_title($post_name, $post_ID);