[wp-hackers] overriding pluggable.php functions

Ryan McCue ryanmccue at cubegames.net
Sat Jan 10 09:22:31 GMT 2009


Will Norris wrote:
>   if (!function_exists('wp_authenticate')) {
>     function wp_authenticate($username, $password) {
>       return apply_filters('authenticate', null, $username, password);
>     }
>   }

Instead of calling apply_filters() with a null value to filter, call
do_action() instead, as that's what it's built for.

-- 
Ryan McCue
<http://cubegames.net/>



More information about the wp-hackers mailing list