Skip to:
Content

BuddyPress.org

Changeset 9428


Ignore:
Timestamp:
02/04/2015 01:53:42 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Replace domain.com references with example.com to avoid linking to unaffiliated . Props netweb. Fixes #6183.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-catchuri.php

    r9351 r9428  
    2222 *
    2323 * The URIs are broken down as follows:
    24  *   - http:// domain.com / members / andy / [current_component] / [current_action] / [action_variables] / [action_variables] / ...
    25  *   - OUTSIDE ROOT: http:// domain.com / sites / buddypress / members / andy / [current_component] / [current_action] / [action_variables] / [action_variables] / ...
     24 *   - http:// example.com / members / andy / [current_component] / [current_action] / [action_variables] / [action_variables] / ...
     25 *   - OUTSIDE ROOT: http:// example.com / sites / buddypress / members / andy / [current_component] / [current_action] / [action_variables] / [action_variables] / ...
    2626 *
    2727 *  Example:
    28  *    - http://domain.com/members/andy/profile/edit/group/5/
     28 *    - http://example.com/members/andy/profile/edit/group/5/
    2929 *    - $bp->current_component: string 'xprofile'
    3030 *    - $bp->current_action: string 'edit'
  • trunk/src/bp-core/bp-core-functions.php

    r9426 r9428  
    787787 * Return the domain for the root blog.
    788788 *
    789  * eg: http://domain.com OR https://domain.com
     789 * eg: http://example.com OR https://example.com
    790790 *
    791791 * @uses get_blog_option() WordPress function to fetch blog meta.
     
    855855            $site_path = '/';
    856856        } else {
    857             // Unset the first three segments (http(s)://domain.com part)
     857            // Unset the first three segments (http(s)://example.com part)
    858858            unset( $site_path[0] );
    859859            unset( $site_path[1] );
  • trunk/src/bp-core/bp-core-template.php

    r9351 r9428  
    13701370 * Check to see if a component's URL should be in the root, not under a member page.
    13711371 *
    1372  * - Yes ('groups' is root)    : http://domain.com/groups/the-group
    1373  * - No  ('groups' is not-root): http://domain.com/members/andy/groups/the-group
     1372 * - Yes ('groups' is root)    : http://example.com/groups/the-group
     1373 * - No  ('groups' is not-root): http://example.com/members/andy/groups/the-group
    13741374 *
    13751375 * This function is on the chopping block. It's currently only used by a few
  • trunk/src/bp-core/deprecated/1.5.php

    r9351 r9428  
    450450/**
    451451 * Checks to see if a component's URL should be in the root, not under a member page:
    452  * eg: http://domain.com/groups/the-group NOT http://domain.com/members/andy/groups/the-group
     452 * eg: http://example.com/groups/the-group NOT http://example.com/members/andy/groups/the-group
    453453 * You should be using bp_is_root_component().
    454454 *
  • trunk/src/bp-members/bp-members-functions.php

    r9398 r9428  
    152152
    153153/**
    154  * Return the domain for the passed user: e.g. http://domain.com/members/andy/.
     154 * Return the domain for the passed user: e.g. http://example.com/members/andy/.
    155155 *
    156156 * @param int $user_id The ID of the user.
     
    464464 * Return a HTML formatted link for a user with the user's full name as the link text.
    465465 *
    466  * eg: <a href="http://andy.domain.com/">Andy Peatling</a>
     466 * eg: <a href="http://andy.example.com/">Andy Peatling</a>
    467467 *
    468468 * Optional parameters will return just the name or just the URL.
  • trunk/src/bp-members/bp-members-loader.php

    r9351 r9428  
    121121        $bp->loggedin_user->is_super_admin = $bp->loggedin_user->is_site_admin = is_super_admin( bp_loggedin_user_id() );
    122122
    123         // The domain for the user currently logged in. eg: http://domain.com/members/andy
     123        // The domain for the user currently logged in. eg: http://example.com/members/andy
    124124        $bp->loggedin_user->domain         = bp_core_get_user_domain( bp_loggedin_user_id() );
    125125
Note: See TracChangeset for help on using the changeset viewer.