[wp-hackers] mb_send_mail removed?

Scott Reilly scottr at gmail.com
Sat Feb 19 18:51:06 GMT 2005


Ryan, I must be overlooking something here, how does one go about
redefining a core function?  I realize PHP does not allow
redefinition, hence the wrapping of re-definable functions in
   if ( ! function_exists('func_name') )

However, in wp-settings.php, all the core code is included before the
plugins are sourced.  So assuming you wrapped wp_mail() in a
function_exists check, wouldn't the function always never exist even
if it were defined by a plugin, since the plugin would be sourced
after functions.php (where the core wp_mail() is defined)?

I admit I only made a cusory attempt at trying to redefine a function
not too long ago, but I was met with what I expected, an error
indicating I was attempting to redefine an existing function.

-Scott


On Sat, 19 Feb 2005 11:46:31 -0600, Ryan Boren <ryan at boren.nu> wrote:
> 
> I thought we wrapped wp_mail() in a function_exists(), but apparently
> not.  Probably should have done that.
>


More information about the hackers mailing list