Changeset 10899 for trunk/src/bp-core/bp-core-catchuri.php
- Timestamp:
- 06/23/2016 06:31:58 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-catchuri.php
r10879 r10899 219 219 * Filter the portion of the URI that is the displayed user's slug. 220 220 * 221 * eg. example.com/ADMIN (when root profiles is enabled)221 * Eg. example.com/ADMIN (when root profiles is enabled) 222 222 * example.com/members/ADMIN (when root profiles isn't enabled) 223 223 * … … 554 554 * 555 555 * @param string $member_slug The current member slug. 556 * @return string $member_slug The current member slug. 556 557 */ 557 558 function bp_core_members_shortlink_redirector( $member_slug ) { 559 558 560 /** 559 561 * Shortlink slug to redirect to logged-in user. 560 562 * 561 * x.com/members/me/*will redirect to x.com/members/{LOGGED_IN_USER_SLUG}/*563 * The x.com/members/me/* url will redirect to x.com/members/{LOGGED_IN_USER_SLUG}/* 562 564 * 563 565 * @since 2.6.0 564 566 * 565 * @ varstring $slug Defaults to 'me'.567 * @param string $slug Defaults to 'me'. 566 568 */ 567 569 $me_slug = apply_filters( 'bp_core_members_shortlink_slug', 'me' ); … … 636 638 637 639 $defaults = array( 638 'mode' => 2, // 1 = $root, 2 = wp-login.php 639 'redirect' => $redirect_url, // the URL you get redirected to when a user successfully logs in 640 'root' => bp_get_root_domain(), // the landing page you get redirected to when a user doesn't have access640 'mode' => 2, // 1 = $root, 2 = wp-login.php. 641 'redirect' => $redirect_url, // the URL you get redirected to when a user successfully logs in. 642 'root' => bp_get_root_domain(), // the landing page you get redirected to when a user doesn't have access. 641 643 'message' => __( 'You must log in to access the page you requested.', 'buddypress' ) 642 644 ); … … 655 657 656 658 /* 657 * @ignore Ignore these filters and use 'bp_core_no_access' above 659 * @ignore Ignore these filters and use 'bp_core_no_access' above. 658 660 */ 659 661 $mode = apply_filters( 'bp_no_access_mode', $mode, $root, $redirect, $message ); … … 665 667 switch ( $mode ) { 666 668 667 // Option to redirect to wp-login.php 669 // Option to redirect to wp-login.php. 668 670 // Error message is displayed with bp_core_no_access_wp_login_error(). 669 671 case 2 : … … 676 678 break; 677 679 678 // Redirect to root with "redirect_to" parameter 680 // Redirect to root with "redirect_to" parameter. 679 681 // Error message is displayed with bp_core_add_message(). 680 682 case 1 : … … 940 942 * 941 943 * @since 1.6.0 942 *943 944 */ 944 945 function _bp_maybe_remove_redirect_canonical() {
Note: See TracChangeset
for help on using the changeset viewer.