Ticket #5302: 5302.diff
| File 5302.diff, 515 bytes (added by , 18 years ago) |
|---|
-
wp-includes/post.php
1306 1306 1307 1307 if ( empty($post_name) ) { 1308 1308 $post_name = sanitize_title($post_title, $post_ID); 1309 $wpdb->update( $wpdb->posts, compact( $post_name), array( 'ID' => $post_ID ) );1309 $wpdb->update( $wpdb->posts, compact("post_name"), array( 'ID' => $post_ID ) ); 1310 1310 } 1311 1311 1312 1312 wp_set_post_categories($post_ID, $post_category);