Changeset 6436
- Timestamp:
- 12/20/2007 09:25:12 PM (17 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/bookmark-template.php
r6161 r6436 5 5 'show_updated' => 0, 'show_description' => 0, 6 6 'show_images' => 1, 'before' => '<li>', 7 'after' => '</li>', 'between' => "\n" 7 'after' => '</li>', 'between' => "\n", 8 'show_rating' => 0 8 9 ); 9 10 … … 11 12 extract( $r, EXTR_SKIP ); 12 13 14 $output = ''; // Blank string to start with. 15 13 16 foreach ( (array) $bookmarks as $bookmark ) { 14 17 if ( !isset($bookmark->recently_updated) ) -
trunk/wp-includes/canonical.php
r6364 r6436 21 21 // Some PHP setups turn requests for / into /index.php in REQUEST_URI 22 22 $original['path'] = preg_replace('|/index\.php$|', '/', $original['path']); 23 23 24 24 $redirect = $original; 25 25 $redirect_url = false; -
trunk/wp-includes/classes.php
r6388 r6436 528 528 if ( $depth ) 529 529 $indent = str_repeat("\t", $depth); 530 else 531 $indent = ''; 532 530 533 extract($args, EXTR_SKIP); 531 534 $css_class = 'page_item page-item-'.$page->ID; … … 647 650 } 648 651 649 if ( $current_category )652 if ( isset($current_category) && $current_category ) 650 653 $_current_category = get_category( $current_category ); 651 654 … … 653 656 $output .= "\t<li"; 654 657 $class = 'cat-item cat-item-'.$category->term_id; 655 if ( $current_category && ($category->term_id == $current_category) )658 if ( isset($current_category) && $current_category && ($category->term_id == $current_category) ) 656 659 $class .= ' current-cat'; 657 elseif ( $_current_category && ($category->term_id == $_current_category->parent) )660 elseif ( isset($_current_category) && $_current_category && ($category->term_id == $_current_category->parent) ) 658 661 $class .= ' current-cat-parent'; 659 662 $output .= ' class="'.$class.'"'; -
trunk/wp-includes/widgets.php
r6381 r6436 204 204 $sidebars_widgets = wp_get_sidebars_widgets(); 205 205 206 if ( empty($wp_registered_sidebars[$index]) || ! is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) )206 if ( empty($wp_registered_sidebars[$index]) || !array_key_exists($index, $sidebars_widgets) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index]) ) 207 207 return false; 208 208
Note: See TracChangeset
for help on using the changeset viewer.