[buddypress-trac] [BuddyPress Trac] #7659: Subnav menu with 'user_has_access' set to false should redirect but doesn't

buddypress-trac noreply at wordpress.org
Sat Jan 20 21:39:28 UTC 2018


#7659: Subnav menu with 'user_has_access' set to false should redirect but doesn't
------------------------------+--------------------
 Reporter:  r-a-y             |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.0
Component:  Navigation        |     Version:  2.6.0
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+--------------------

Comment (by r-a-y):

 In [changeset:"11814"]:
 {{{
 #!CommitTicketReference repository="" revision="11814"
 Navigation: Restricted subnav menu pages should redirect instead of
 throwing a 404.

 Back in BuddyPress 2.6.0, we refactored the way we register menu items
 with
 the BP Navigation API (see #6534).

 The problem is we missed an instance during the refactor.  This caused
 restricted subnav pages (those set with the `'user_has_access'` parameter
 to false in `bp_core_new_subnav_item()`) to 404 instead of being
 redirected
 away.

 Commit fixes this problem.

 See #7659.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7659#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list