[wp-trac] Re: [WordPress Trac] #8522: Most Popular Tags -
unidentified error
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 8 03:59:43 GMT 2008
#8522: Most Popular Tags - unidentified error
---------------------+------------------------------------------------------
Reporter: JMcK | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.7
Severity: normal | Resolution:
Keywords: tags |
---------------------+------------------------------------------------------
Comment (by vladimir_kolesnikov):
This happens when get_tags() does not find any tags:
{{{
$tags = get_tags( array( 'number' => 45, 'orderby' => 'count', 'order' =>
'DESC' ) );
if ( empty( $tags ) )
die('0');
}}}
die('0') causes this "error". Probably need a better error message.
--
Ticket URL: <http://trac.wordpress.org/ticket/8522#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list