Changeset 5700 for trunk/wp-includes/category-template.php
- Timestamp:
- 06/14/2007 02:25:30 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r5693 r5700 187 187 'name' => 'cat', 'class' => 'postform' 188 188 ); 189 189 190 190 $defaults['selected'] = ( is_category() ) ? get_query_var('cat') : 0; 191 191 192 192 $r = wp_parse_args( $args, $defaults ); 193 193 $r['include_last_update_time'] = $r['show_last_update']; … … 237 237 'hierarchical' => true, 'title_li' => __('Categories') 238 238 ); 239 239 240 240 $r = wp_parse_args( $args, $defaults ); 241 241 242 242 if ( !isset( $r['pad_counts'] ) && $r['show_count'] && $r['hierarchical'] ) { 243 243 $r['pad_counts'] = true; 244 244 } 245 245 246 246 if ( isset( $r['show_date'] ) ) { 247 247 $r['include_last_update_time'] = $r['show_date']; 248 248 } 249 249 250 250 extract( $r ); 251 251 252 252 $categories = get_categories($r); 253 253 … … 263 263 } else { 264 264 global $wp_query; 265 265 266 266 if( !empty($show_option_all) ) 267 267 if ('list' == $style ) … … 269 269 else 270 270 $output .= '<a href="' . get_bloginfo('url') . '">' . $show_option_all . '</a>'; 271 271 272 272 if ( is_category() ) 273 273 $r['current_category'] = $wp_query->get_queried_object_id(); … … 410 410 function get_the_tags( $id = 0 ) { 411 411 global $post; 412 412 413 413 $id = (int) $id; 414 414 415 415 if ( ! $id && ! in_the_loop() ) 416 416 return false; // in-the-loop function 417 417 418 418 if ( !$id ) 419 419 $id = (int) $post->ID; … … 434 434 if ( empty( $tags ) ) 435 435 return false; 436 436 437 437 $tag_list = $before; 438 438 foreach ( $tags as $tag )
Note: See TracChangeset
for help on using the changeset viewer.