Make WordPress Core

Changeset 9000


Ignore:
Timestamp:
09/27/2008 09:53:43 AM (16 years ago)
Author:
westi
Message:

Fix Notice. When nothing exists for an action or filter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/plugin.php

    r8782 r9000  
    659659            if ( false === $priority )
    660660                return false;
    661             $count = count((array)$wp_filter[$tag][$priority]);
     661            $count = isset($wp_filter[$tag]) ? count((array)$wp_filter[$tag][$priority]) : 0;
    662662            $function[0]->wp_filter_id = $count;
    663663            $obj_idx .= $count;
Note: See TracChangeset for help on using the changeset viewer.