mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Check for is_wp_error() return
git-svn-id: https://develop.svn.wordpress.org/trunk@10261 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user