Changeset 10150 for trunk/wp-includes/category-template.php
- Timestamp:
- 12/09/2008 06:03:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r9952 r10150 305 305 else 306 306 return false; 307 307 308 308 } 309 309 … … 433 433 * categories. 434 434 * 'order' (string) default is 'ASC' - What direction to order categories. 435 * 'show_last_update' (bool|int) default is 0 - See {@link 435 * 'show_last_update' (bool|int) default is 0 - See {@link 436 436 * walk_category_dropdown_tree()} 437 437 * 'show_count' (bool|int) default is 0 - Whether to show how many posts are … … 616 616 * The 'topic_count_text_callback' argument is a function, which given the count 617 617 * of the posts with that tag returns a text for the tooltip of the tag link. 618 * @see default_topic_count_text 619 * 618 * @see default_topic_count_text 619 * 620 620 * 621 621 * @todo Complete functionality. … … 633 633 'topic_count_text_callback' => 'default_topic_count_text', 634 634 ); 635 635 636 636 if ( !isset( $args['topic_count_text_callback'] ) && isset( $args['single_text'] ) && isset( $args['multiple_text'] ) ) { 637 $body = 'return sprintf ( 637 $body = 'return sprintf ( 638 638 __ngettext('.var_export($args['single_text'], true).', '.var_export($args['multiple_text'], true).', $count), 639 639 number_format_i18n( $count ));'; 640 640 $args['topic_count_text_callback'] = create_function('$count', $body); 641 641 } 642 642 643 643 $args = wp_parse_args( $args, $defaults ); 644 644 645 645 extract( $args ); 646 646
Note: See TracChangeset
for help on using the changeset viewer.