Make WordPress Core

Changeset 29472


Ignore:
Timestamp:
08/12/2014 02:46:45 PM (10 years ago)
Author:
wonderboymusic
Message:

After [29422], make sure the internal array counter is not reset for the $wp_filter global.

Props kovshenin.
See #29070.

File:
1 edited

Legend:

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

    r29422 r29472  
    106106 */
    107107function has_filter($tag, $function_to_check = false) {
    108     global $wp_filter;
     108    $wp_filter = $GLOBALS['wp_filter'];
    109109
    110110    $has = ! empty( $wp_filter[ $tag ] );
Note: See TracChangeset for help on using the changeset viewer.