[wp-trac] [WordPress Trac] #24428: wp_list_categories 'show_option_all' have not class element
WordPress Trac
noreply at wordpress.org
Sun May 26 20:59:58 UTC 2013
#24428: wp_list_categories 'show_option_all' have not class element
--------------------------+-----------------------------
Reporter: Alexufo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.5.1
Severity: normal | Keywords:
--------------------------+-----------------------------
wp_list_categories 'show_option_all' link to all categories .
But this link have not class like overs li elements.
Try this
{{{
<? $args = array(
'show_option_all' => 'All',
'orderby' => 'name',
'order' => 'ASC',
'style' => 'list',
'show_count' => 1,
'hide_empty' => 1,
'use_desc_for_title' => 0,
'child_of' => 0,
'feed' => '',
'feed_type' => '',
'feed_image' => '',
'exclude' => '',
'exclude_tree' => '',
'include' => '',
'hierarchical' => 1,
'title_li' => '',
'show_option_none' => __('No categories'),
'number' => null,
'echo' => 1,
'depth' => 0,
'current_category' => 1,
'pad_counts' => 0,
'taxonomy' => 'category',
'walker' => null
); ?>
<?php wp_list_categories($args); ?>
}}}
You will get
{{{
<!--This li element have not class --><li><a href="">All</a></li>
<li class="cat-item cat-item-35"><a></a></li>
<li class="cat-item cat-item-4"><a></a></li>
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24428>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list