Make WordPress Core


Ignore:
Timestamp:
01/20/2005 05:18:55 AM (21 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.