Changeset 7472 for trunk/wp-includes/category-template.php
- Timestamp:
- 03/22/2008 09:14:49 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/category-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r7130 r7472 217 217 'selected' => 0, 'hierarchical' => 0, 218 218 'name' => 'cat', 'class' => 'postform', 219 'depth' => 0 219 'depth' => 0, 'tab_index' => 0 220 220 ); 221 221 … … 226 226 extract( $r ); 227 227 228 $tab_index_attribute = ''; 229 if ( (int) $tab_index > 0 ) 230 $tab_index_attribute = " tabindex=\"$tab_index\""; 231 228 232 $categories = get_categories($r); 229 233 230 234 $output = ''; 231 235 if ( ! empty($categories) ) { 232 $output = "<select name='$name' id='$name' class='$class' >\n";236 $output = "<select name='$name' id='$name' class='$class' $tab_index_attribute>\n"; 233 237 234 238 if ( $show_option_all ) {
Note: See TracChangeset
for help on using the changeset viewer.