Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/20/2018 09:41:52 PM (7 years ago)
Author:
r-a-y
Message:

Navigation: Show redirect message on restricted subnav menu pages.

Commit also alters the message strings to better reflect what is happening
("that page" instead of "this page").

See #7659.

File:
1 edited

Legend:

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

    r11814 r11815  
    676676            $bp = buddypress();
    677677
    678             // If a redirect URL has been passed to the subnav
    679             // item, respect it.
     678            // If a redirect URL has been passed to the subnav item, respect it.
    680679            if ( ! empty( $subnav_item['no_access_url'] ) ) {
    681                 $message     = __( 'You do not have access to this page.', 'buddypress' );
     680                $message     = __( 'You do not have access to that page.', 'buddypress' );
    682681                $redirect_to = trailingslashit( $subnav_item['no_access_url'] );
    683682
     
    695694                // publicly accessible.
    696695                if ( bp_is_my_profile() || ( isset( $parent_nav_default_item ) && $parent_nav_default_item->show_for_displayed_user ) ) {
    697                     $message     = __( 'You do not have access to this page.', 'buddypress' );
     696                    $message     = __( 'You do not have access to that page.', 'buddypress' );
    698697                    $redirect_to = bp_displayed_user_domain();
    699698
     
    723722                'root'     => $redirect_to,
    724723                'redirect' => false,
     724                'mode'     => 1
    725725            );
    726726
Note: See TracChangeset for help on using the changeset viewer.