cast to array when checking for old post slugs. fixes #3202

git-svn-id: http://svn.automattic.com/wordpress/trunk@4571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2006-12-01 04:51:09 +00:00
parent 1905a747d4
commit 7ed36f06aa

View File

@ -2084,7 +2084,7 @@ function wp_check_for_changed_slugs($post_id) {
if ( $post->post_name == $_POST['wp-old-slug'] )
return $post_id;
$old_slugs = get_post_meta($post_id, '_wp_old_slug');
$old_slugs = (array) get_post_meta($post_id, '_wp_old_slug');
// if we haven't added this old slug before, add it now
if ( !count($old_slugs) || !in_array($_POST['wp-old-slug'], $old_slugs) )