[wp-trac] Re: [WordPress Trac] #9059: single_cat_title wont show
category called 0
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 18 03:57:44 GMT 2009
#9059: single_cat_title wont show category called 0
--------------------------+-------------------------------------------------
Reporter: noonoo | Owner: anonymous
Type: defect (bug) | Status: new
Priority: low | Milestone:
Component: Template | Version: 2.7
Severity: minor | Keywords: needs-patch
--------------------------+-------------------------------------------------
Changes (by Viper007Bond):
* keywords: single_cat_title,numbered,category,0 => needs-patch
* owner: => anonymous
* component: Themes => Template
Comment:
The problem comes from the usage of `if ( !empty($variable) )`.
And actually there's two problems going on here. Viewing the archive for a
category with the stub of `0` doesn't load the `archive.php` template --
it uses `index.php`. I've made a separate ticket for that though: #9352
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9059#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list