Make wp_mail() replaceable. http://mosquito.wordpress.org/view.php?id=1210
git-svn-id: https://develop.svn.wordpress.org/trunk@2515 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
36639a2b71
commit
eca5d88e60
|
@ -1794,7 +1794,7 @@ function htmlentities2($myHTML) {
|
||||||
return preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,3};)/","&" , strtr($myHTML, $translation_table));
|
return preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,3};)/","&" , strtr($myHTML, $translation_table));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( !function_exists('wp_mail') ) :
|
||||||
function wp_mail($to, $subject, $message, $headers = '') {
|
function wp_mail($to, $subject, $message, $headers = '') {
|
||||||
if( $headers == '' ) {
|
if( $headers == '' ) {
|
||||||
$headers = "MIME-Version: 1.0\r\n" .
|
$headers = "MIME-Version: 1.0\r\n" .
|
||||||
|
@ -1804,6 +1804,7 @@ function wp_mail($to, $subject, $message, $headers = '') {
|
||||||
|
|
||||||
return @mail($to, $subject, $message, $headers);
|
return @mail($to, $subject, $message, $headers);
|
||||||
}
|
}
|
||||||
|
endif;
|
||||||
|
|
||||||
if ( !function_exists('wp_login') ) :
|
if ( !function_exists('wp_login') ) :
|
||||||
function wp_login($username, $password, $already_md5 = false) {
|
function wp_login($username, $password, $already_md5 = false) {
|
||||||
|
|
Loading…
Reference in New Issue