Changeset 5413

Show
Ignore:
Timestamp:
05/08/07 17:59:52 (1 year ago)
Author:
ryan
Message:

Make sure wp_actions is set before counting.

Files:

Legend:

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

    r5409 r5413  
    174174    global $wp_actions; 
    175175 
     176    if ( empty($wp_actions) ) 
     177        return 0; 
     178 
    176179    return count(array_keys($wp_actions, $tag)); 
    177180}