Changeset 6026 for trunk/wp-includes/category-template.php
- Timestamp:
- 09/03/2007 11:32:58 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/category-template.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r5917 r6026 87 87 } 88 88 89 function _usort_terms_by_ID($a, $b) { 90 if ( $a->term_id > $b->term_id ) 91 return 1; 92 elseif ( $a->term_id < $b->term_id ) 93 return -1; 94 else 95 return 0; 89 function _usort_terms_by_ID($a, $b) { 90 if ( $a->term_id > $b->term_id ) 91 return 1; 92 elseif ( $a->term_id < $b->term_id ) 93 return -1; 94 else 95 return 0; 96 96 } 97 97 … … 186 186 function wp_dropdown_categories($args = '') { 187 187 $defaults = array( 188 'show_option_all' => '', 'show_option_none' => '', 189 'orderby' => 'ID', 'order' => 'ASC', 190 'show_last_update' => 0, 'show_count' => 0, 191 'hide_empty' => 1, 'child_of' => 0, 192 'exclude' => '', 'echo' => 1, 193 'selected' => 0, 'hierarchical' => 0, 188 'show_option_all' => '', 'show_option_none' => '', 189 'orderby' => 'ID', 'order' => 'ASC', 190 'show_last_update' => 0, 'show_count' => 0, 191 'hide_empty' => 1, 'child_of' => 0, 192 'exclude' => '', 'echo' => 1, 193 'selected' => 0, 'hierarchical' => 0, 194 194 'name' => 'cat', 'class' => 'postform' 195 195 ); … … 236 236 function wp_list_categories($args = '') { 237 237 $defaults = array( 238 'show_option_all' => '', 'orderby' => 'name', 239 'order' => 'ASC', 'show_last_update' => 0, 240 'style' => 'list', 'show_count' => 0, 241 'hide_empty' => 1, 'use_desc_for_title' => 1, 242 'child_of' => 0, 'feed' => '', 243 'feed_image' => '', 'exclude' => '', 238 'show_option_all' => '', 'orderby' => 'name', 239 'order' => 'ASC', 'show_last_update' => 0, 240 'style' => 'list', 'show_count' => 0, 241 'hide_empty' => 1, 'use_desc_for_title' => 1, 242 'child_of' => 0, 'feed' => '', 243 'feed_image' => '', 'exclude' => '', 244 244 'hierarchical' => true, 'title_li' => __('Categories') 245 245 ); … … 272 272 273 273 if( !empty($show_option_all) ) 274 if ('list' == $style ) 274 if ('list' == $style ) 275 275 $output .= '<li><a href="' . get_bloginfo('url') . '">' . $show_option_all . '</a></li>'; 276 276 else … … 296 296 function wp_tag_cloud( $args = '' ) { 297 297 $defaults = array( 298 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45, 298 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45, 299 299 'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC', 300 300 'exclude' => '', 'include' => '' … … 418 418 419 419 function get_the_tags( $id = 0 ) { 420 global $post; 420 global $post; 421 421 422 422 $id = (int) $id; 423 423 424 if ( ! $id && ! in_the_loop() ) 425 return false; // in-the-loop function 426 427 if ( !$id ) 424 if ( ! $id && ! in_the_loop() ) 425 return false; // in-the-loop function 426 427 if ( !$id ) 428 428 $id = (int) $post->ID; 429 429 … … 433 433 434 434 $tags = apply_filters( 'get_the_tags', $tags ); 435 if ( empty( $tags ) ) 436 return false; 437 return $tags; 435 if ( empty( $tags ) ) 436 return false; 437 return $tags; 438 438 } 439 439
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)