Changeset 5202

Show
Ignore:
Timestamp:
04/07/07 05:24:37 (1 year ago)
Author:
ryan
Message:

Avoid php notices.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/category.php

    r5184 r5202  
    142142    wp_cache_set( 'get_categories', $cache, 'category' ); 
    143143 
    144     return apply_filters('get_categories', $categories, $r); 
     144    $categories = apply_filters('get_categories', $categories, $r); 
     145    return $categories; 
    145146} 
    146147 
  • trunk/wp-includes/plugin.php

    r5170 r5202  
    7575    global $wp_filter, $merged_filters; 
    7676 
    77     if ( is_array($wp_filter['all']) ) 
     77    if ( isset($wp_filter['all']) && is_array($wp_filter['all']) ) 
    7878        $wp_filter[$tag] = array_merge($wp_filter['all'], (array) $wp_filter[$tag]); 
    7979