Changeset 4198
- Timestamp:
- 09/19/2006 11:56:28 PM (19 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category-template.php
r4173 r4198 220 220 'hierarchical' => true, 'title_li' => __('Categories')); 221 221 $r = array_merge($defaults, $r); 222 $r['include_last_update_time'] = $r['show_date']; 222 if ( isset($r['show_date']) ) 223 $r['include_last_update_time'] = $r['show_date']; 223 224 extract($r); 224 225 -
trunk/wp-includes/category.php
r4173 r4198 21 21 22 22 $defaults = array('type' => 'post', 'child_of' => 0, 'orderby' => 'name', 'order' => 'ASC', 23 'hide_empty' => true, 'include_last_update_time' => false, 'hierarchical' => 1, $exclude => '', $include=> '',23 'hide_empty' => true, 'include_last_update_time' => false, 'hierarchical' => 1, 'exclude' => '', 'include' => '', 24 24 'number' => ''); 25 25 $r = array_merge($defaults, $r); -
trunk/wp-includes/classes.php
r4196 r4198 389 389 if ( $flat) { 390 390 // Start the element. 391 if ( $element->$id_field != 0 ) {391 if ( isset($element->$id_field) && $element->$id_field != 0 ) { 392 392 $cb_args = array_merge( array($output, $element, $depth - 1), $args); 393 393 $output = call_user_func_array(array(&$this, 'start_el'), $cb_args); … … 395 395 396 396 // End the element. 397 if ( $element->$id_field != 0 ) {397 if ( isset($element->$id_field) && $element->$id_field != 0 ) { 398 398 $cb_args = array_merge( array($output, $element, $depth - 1), $args); 399 399 $output = call_user_func_array(array(&$this, 'end_el'), $cb_args); … … 584 584 } 585 585 586 if ( $show_count )586 if ( isset($show_count) && $show_count ) 587 587 $link .= ' ('.intval($category->category_count).')'; 588 588 589 if ( $show_date ) {589 if ( isset($show_date) && $show_date ) { 590 590 $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp); 591 591 } -
trunk/wp-includes/post.php
r4191 r4198 100 100 } 101 101 102 if ( defined( WP_IMPORTING) )102 if ( defined('WP_IMPORTING') ) 103 103 unset($post_cache); 104 104 … … 924 924 $_page = $page; 925 925 } else { 926 if ( isset($GLOBALS['page'] ) && ($page == $GLOBALS['page']->ID) ) {926 if ( isset($GLOBALS['page']->ID) && ($page == $GLOBALS['page']->ID) ) { 927 927 $_page = & $GLOBALS['page']; 928 928 wp_cache_add($_page->ID, $_page, 'pages'); 929 } elseif ( $_page= $GLOBALS['post_cache'][$page] ) {929 } elseif ( isset($_page) && $_page == $GLOBALS['post_cache'][$page] ) { 930 930 return get_post($page, $output); 931 } elseif ( $_page= wp_cache_get($page, 'pages') ) {931 } elseif ( isset($_page) && $_page == wp_cache_get($page, 'pages') ) { 932 932 // Got it. 933 933 } else {
Note: See TracChangeset
for help on using the changeset viewer.