Make WordPress Core

Changeset 1687


Ignore:
Timestamp:
09/18/2004 05:36:18 AM (22 years ago)
Author:
rboren
Message:

Do not sanitize an empty title.

File:
1 edited

Legend:

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

    r1664 r1687  
    6868        $post_password = $_POST['post_password'];
    6969       
    70         if (empty($post_name))
    71             $post_name = sanitize_title($post_title, $post_ID);
    72         else
     70        if (empty($post_name)) {
     71            if (! empty($post_title)) {
     72                $post_name = sanitize_title($post_title, $post_ID);
     73            }
     74        } else {
    7375            $post_name = sanitize_title($post_name, $post_ID);
     76        }
    7477
    7578        $trackback = $_POST['trackback_url'];
Note: See TracChangeset for help on using the changeset viewer.