WordPress.org

Make WordPress Core

Changeset 3338


Ignore:
Timestamp:
12/22/05 04:31:48 (9 years ago)
Author:
ryan
Message:

Don't get children for cat 0. fixes #2123

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-category.php

    r3039 r3338  
    127127 
    128128function get_category_children($id, $before = '/', $after = '') { 
     129    if ( 0 == $id ) 
     130        return ''; 
     131 
    129132    $cat_ids = get_all_category_ids(); 
    130133    foreach ( $cat_ids as $cat_id ) { 
Note: See TracChangeset for help on using the changeset viewer.