Changeset 1512
- Timestamp:
- 08/06/2004 01:28:51 AM (21 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-admin/post.php (modified) (1 diff)
-
wp-includes/functions-formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r1503 r1512 303 303 //if (!$_POST['ping_status']) $ping_status = get_settings('default_ping_status'); 304 304 $post_password = $_POST['post_password']; 305 $post_name = sanitize_title($_POST['post_name'], $post_ID); 305 $post_name = $_POST['post_name']; 306 if (empty($post_name)) { 307 $post_name = $post_title; 308 } 309 $post_name = sanitize_title($post_name, $post_ID); 306 310 if (empty($post_name)) $post_name = sanitize_title($post_title); 307 311 $trackback = $_POST['trackback_url']; -
trunk/wp-includes/functions-formatting.php
r1488 r1512 121 121 122 122 function sanitize_title($title, $fallback_title = '') { 123 $title = strip_tags($title); 123 124 $title = apply_filters('sanitize_title', $title); 124 $title = strip_tags($title); 125 125 126 if (empty($title)) { 126 127 $title = $fallback_title;
Note: See TracChangeset
for help on using the changeset viewer.