Skip to:
Content

bbPress.org

Ticket #2618: 2618.5.diff

File 2618.5.diff, 562 bytes (added by netweb, 6 years ago)
  • src/includes/common/functions.php

     
    10111011 * @return string
    10121012 */
    10131013function bbp_get_do_not_reply_address() {
    1014         $email = 'noreply@' . str_replace( 'www.', '', ltrim( get_home_url(), '^(http|https)://' ) );
     1014        $email = 'noreply@' . preg_replace( '@^https?://(www\.)?@i', '', get_home_url() );
    10151015        return apply_filters( 'bbp_get_do_not_reply_address', $email );
    10161016}
    10171017