Skip to:
Content

bbPress.org

Ticket #2618: 2618.5-25branch.diff

File 2618.5-25branch.diff, 1.2 KB (added by netweb, 6 years ago)
  • branches/2.5/includes/common/functions.php

     
    10621062        $reply_content = strip_tags( bbp_get_reply_content( $reply_id ) );
    10631063        $reply_url     = bbp_get_reply_url( $reply_id );
    10641064        $blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    1065         $do_not_reply  = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';
     1065        $do_not_reply  = '<noreply@' . preg_replace( '@^https?://(www\.)?@i', '', get_home_url() ) . '>';
    10661066
    10671067        // For plugins to filter messages per reply/topic/user
    10681068        $message = sprintf( __( '%1$s wrote:
     
    12021202        $topic_content = strip_tags( bbp_get_topic_content( $topic_id ) );
    12031203        $topic_url     = get_permalink( $topic_id );
    12041204        $blog_name     = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
    1205         $do_not_reply  = '<noreply@' . ltrim( get_home_url(), '^(http|https)://' ) . '>';
     1205        $do_not_reply  = '<noreply@' . preg_replace( '@^https?://(www\.)?@i', '', get_home_url() ) . '>';
    12061206
    12071207        // For plugins to filter messages per reply/topic/user
    12081208        $message = sprintf( __( '%1$s wrote: