Strip lines that contain only whitespace down to newlines.

git-svn-id: http://svn.automattic.com/wordpress/trunk@6025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2007-09-03 23:19:20 +00:00
parent d38d018ce9
commit 87c4f3a17f
16 changed files with 111 additions and 111 deletions

View File

@@ -615,7 +615,7 @@ function upgrade_230() {
$name = $wpdb->escape($category->cat_name);
$slug = sanitize_title($name);
$term_group = 0;
// Associate terms with the same slug in a term group and make slugs unique.
if ( $exists = $wpdb->get_results("SELECT term_id, term_group FROM $wpdb->terms WHERE slug = '$slug'") ) {
$term_group = $exists[0]->term_group;