Deprecated: Assigning the return value of new by reference is deprecated in /home/planetjoe/domains/2097racing.com/public_html/wordpress/wp-settings.php on line 267

Deprecated: Assigning the return value of new by reference is deprecated in /home/planetjoe/domains/2097racing.com/public_html/wordpress/wp-settings.php on line 269

Deprecated: Assigning the return value of new by reference is deprecated in /home/planetjoe/domains/2097racing.com/public_html/wordpress/wp-settings.php on line 270

Deprecated: Assigning the return value of new by reference is deprecated in /home/planetjoe/domains/2097racing.com/public_html/wordpress/wp-settings.php on line 287

Deprecated: Assigning the return value of new by reference is deprecated in /home/planetjoe/domains/2097racing.com/public_html/wordpress/wp-includes/cache.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in /home/planetjoe/domains/2097racing.com/public_html/wordpress/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/planetjoe/domains/2097racing.com/public_html/wordpress/wp-includes/theme.php on line 540

Warning: Cannot modify header information - headers already sent by (output started at /home/planetjoe/domains/2097racing.com/public_html/wordpress/wp-settings.php:267) in /home/planetjoe/domains/2097racing.com/public_html/wordpress/wp-includes/feed-rss2.php on line 2
2097 Test Drive » wordpress http://www.2097racing.com/wordpress Just another WordPress weblog Sat, 08 Mar 2008 18:24:02 +0000 http://wordpress.org/?v=2.3.3 en Fixed error in tag listing. http://www.2097racing.com/wordpress/2008/03/07/fixed-error-in-tag-listing/ http://www.2097racing.com/wordpress/2008/03/07/fixed-error-in-tag-listing/#comments Fri, 07 Mar 2008 23:18:44 +0000 joecentric http://www.2097racing.com/wordpress/2008/03/07/fixed-error-in-tag-listing/ Just fixed an error in a foreach() call in the new jwr_show_tags() function in Squible’s wp_cats_as_tags(). Turns out that, for unknown reasons, the old implementation would barf when it saw a post without any tags, when get_the_tags() returned an empty list. Thanks to the examples described here, I’m using an if() to bail out of the function:

if (empty($posttags)) echo "";
else
foreach

The old way to do this was to throw a break at the end of the function using an if() to check the size of the list:

if ( $displaycount == $limit) {break;}

Anyway, it works now.

]]>
http://www.2097racing.com/wordpress/2008/03/07/fixed-error-in-tag-listing/feed/
Aha, 2. http://www.2097racing.com/wordpress/2008/03/06/aha-2/ http://www.2097racing.com/wordpress/2008/03/06/aha-2/#comments Thu, 06 Mar 2008 05:17:12 +0000 joecentric http://www.2097racing.com/wordpress/2008/03/06/aha-2/ Overall control over the Tag Cloud widget built-in to WP2.3 is wp_tag_cloud() located in /wp-includes/category-template.php. Remember that; it was hard to find the first time.

]]>
http://www.2097racing.com/wordpress/2008/03/06/aha-2/feed/