From 7ed36f06aa296f49e4bb61971acd962f9651c1f6 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Fri, 1 Dec 2006 04:51:09 +0000 Subject: [PATCH] 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 --- wp-admin/admin-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 64e758a75f..52896892b8 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -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) )