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
2097 Test Drive » Php

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 en... (read post)
2097 Test Drive is proudly powered by Wordpress 2.3.3 and Squible Beta 2.
All content is copyrighted by its author[s].