Make WordPress Core

Changeset 5412


Ignore:
Timestamp:
05/08/2007 05:59:32 PM (20 years ago)
Author:
ryan
Message:

Make sure wp_actions is set before counting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/plugin.php

    r5408 r5412  
    172172        global $wp_actions;
    173173
     174        if ( empty($wp_actions) )
     175                return 0;
     176
    174177        return count(array_keys($wp_actions, $tag));
    175178}
Note: See TracChangeset for help on using the changeset viewer.