Changeset 19927
- Timestamp:
- 02/15/2012 04:46:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r19712 r19927 272 272 * categories. 273 273 * 'order' (string) default is 'ASC' - What direction to order categories. 274 * 'show_last_update' (bool|int) default is 0 - See {@link get_categories()}275 274 * 'show_count' (bool|int) default is 0 - Whether to show how many posts are 276 275 * in the category. … … 302 301 'show_option_all' => '', 'show_option_none' => '', 303 302 'orderby' => 'id', 'order' => 'ASC', 304 'show_ last_update' => 0, 'show_count' => 0,303 'show_count' => 0, 305 304 'hide_empty' => 1, 'child_of' => 0, 306 305 'exclude' => '', 'echo' => 1, … … 326 325 } 327 326 328 $r['include_last_update_time'] = $r['show_last_update'];329 327 extract( $r ); 330 328 … … 389 387 * categories. 390 388 * 'order' (string) default is 'ASC' - What direction to order categories. 391 * 'show_last_update' (bool|int) default is 0 - See {@link392 * walk_category_dropdown_tree()}393 389 * 'show_count' (bool|int) default is 0 - Whether to show how many posts are 394 390 * in the category. … … 418 414 'show_option_all' => '', 'show_option_none' => __('No categories'), 419 415 'orderby' => 'name', 'order' => 'ASC', 420 's how_last_update' => 0, 'style' => 'list',416 'style' => 'list', 421 417 'show_count' => 0, 'hide_empty' => 1, 422 418 'use_desc_for_title' => 1, 'child_of' => 0, … … 433 429 if ( !isset( $r['pad_counts'] ) && $r['show_count'] && $r['hierarchical'] ) 434 430 $r['pad_counts'] = true; 435 436 if ( isset( $r['show_date'] ) )437 $r['include_last_update_time'] = $r['show_date'];438 431 439 432 if ( true == $r['hierarchical'] ) { … … 875 868 $link .= ' (' . intval($category->count) . ')'; 876 869 877 if ( !empty($show_date) )878 $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp);879 880 870 if ( 'list' == $args['style'] ) { 881 871 $output .= "\t<li"; … … 943 933 * @param object $category Category data object. 944 934 * @param int $depth Depth of category. Used for padding. 945 * @param array $args Uses 'selected' , 'show_count', and 'show_last_update' keys, if they exist.935 * @param array $args Uses 'selected' and 'show_count' keys, if they exist. 946 936 */ 947 937 function start_el( &$output, $category, $depth, $args, $id = 0 ) { … … 956 946 if ( $args['show_count'] ) 957 947 $output .= ' ('. $category->count .')'; 958 if ( $args['show_last_update'] ) {959 $format = 'Y-m-d';960 $output .= ' ' . gmdate($format, $category->last_update_timestamp);961 }962 948 $output .= "</option>\n"; 963 949 }
Note: See TracChangeset
for help on using the changeset viewer.