Make WordPress Core

Changeset 8179


Ignore:
Timestamp:
06/24/2008 12:29:04 AM (14 years ago)
Author:
ryan
Message:

Remove default feed function when adding new function to hook. fixes #6970

File:
1 edited

Legend:

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

    r7841 r8179  
    3232    }
    3333    $hook = 'do_feed_' . $feedname;
    34     remove_action($hook, $function, 10, 1);
     34    // Remove default function hook
     35    remove_action($hook, $hook, 10, 1);
    3536    add_action($hook, $function, 10, 1);
    3637    return $hook;
Note: See TracChangeset for help on using the changeset viewer.