[wp-cvs] wordpress/wp-admin post.php,1.119,1.120

Ryan Boren rboren at users.sourceforge.net
Thu Jan 20 05:18:58 GMT 2005


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22950/wp-admin

Modified Files:
	post.php 
Log 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.

Index: post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/post.php,v
retrieving revision 1.119
retrieving revision 1.120
diff -C2 -d -r1.119 -r1.120
*** post.php	7 Jan 2005 01:11:49 -0000	1.119
--- post.php	20 Jan 2005 05:18:55 -0000	1.120
***************
*** 86,90 ****
  
  	if ( empty($post_name) ) {
- 		if ( !empty($post_title) )
  			$post_name = sanitize_title($post_title, $post_ID);
  	} else {
--- 86,89 ----
***************
*** 269,275 ****
  
  	if (empty($post_name)) {
! 		if (! empty($post_title)) {
! 			$post_name = sanitize_title($post_title, $post_ID);
! 		}
  	} else {
  		$post_name = sanitize_title($post_name, $post_ID);
--- 268,272 ----
  
  	if (empty($post_name)) {
! 		$post_name = sanitize_title($post_title, $post_ID);
  	} else {
  		$post_name = sanitize_title($post_name, $post_ID);



More information about the cvs mailing list