mirror of
git://develop.git.wordpress.org/
synced 2025-01-29 18:48:18 +01:00
Avoid php notices.
git-svn-id: https://develop.svn.wordpress.org/trunk@5202 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ab8c90f89e
commit
c113ddaa1f
@ -141,7 +141,8 @@ function &get_categories($args = '') {
|
||||
$cache[ $key ] = $categories;
|
||||
wp_cache_set( 'get_categories', $cache, 'category' );
|
||||
|
||||
return apply_filters('get_categories', $categories, $r);
|
||||
$categories = apply_filters('get_categories', $categories, $r);
|
||||
return $categories;
|
||||
}
|
||||
|
||||
// Retrieves category data given a category ID or category object.
|
||||
|
@ -74,7 +74,7 @@ function apply_filters($tag, $string) {
|
||||
function merge_filters($tag) {
|
||||
global $wp_filter, $merged_filters;
|
||||
|
||||
if ( is_array($wp_filter['all']) )
|
||||
if ( isset($wp_filter['all']) && is_array($wp_filter['all']) )
|
||||
$wp_filter[$tag] = array_merge($wp_filter['all'], (array) $wp_filter[$tag]);
|
||||
|
||||
if ( isset($wp_filter[$tag]) ){
|
||||
|
Loading…
x
Reference in New Issue
Block a user