From 7cf82cbd00199857496bf313f6ad9122c27a427a Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 30 Dec 2008 18:04:52 +0000 Subject: [PATCH] Check for is_wp_error() return git-svn-id: http://svn.automattic.com/wordpress/trunk@10261 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-ajax.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index f5e13f1b0a..b173572033 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -507,6 +507,9 @@ case 'get-tagcloud' : if ( empty( $tags ) ) die( __('No tags found!') ); + if ( is_wp_error($tags) ) + die($tags->get_error_message()); + foreach ( $tags as $key => $tag ) { $tags[ $key ]->link = '#'; $tags[ $key ]->id = $tag->term_id;