Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2015 12:12:52 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Replace all references to bp_get_root_domain() . '/' . bp_get_members_root_slug() with bp_get_members_directory_permalink(), ensuring all usages and filters are applied uniformly. See #4954.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-forums/bp-forums-template.php

    r9466 r9467  
    10431043        global $forum_template;
    10441044
    1045         $domain = bp_core_get_user_domain( $forum_template->topic->topic_last_poster, $forum_template->topic->topic_last_poster_nicename, $forum_template->topic->topic_last_poster_login ) ;
     1045        $domain = bp_core_get_user_domain( $forum_template->topic->topic_last_poster, $forum_template->topic->topic_last_poster_nicename, $forum_template->topic->topic_last_poster_login );
    10461046
    10471047        // In the case where no user is found, bp_core_get_user_domain() may return the URL
    10481048        // of the Members directory
    1049         if ( !$domain || $domain == bp_core_get_root_domain() . '/' . bp_get_members_root_slug() . '/' )
     1049        if ( empty( $domain ) || ( bp_get_members_directory_permalink() === $domain ) ) {
    10501050            return __( 'Deleted User', 'buddypress' );
     1051        }
    10511052
    10521053        /**
Note: See TracChangeset for help on using the changeset viewer.