[buddypress-trac] [BuddyPress Trac] #5720: bp_core_new_subnav_item() only barely works for non-user nav

buddypress-trac noreply at wordpress.org
Thu Jul 3 12:04:41 UTC 2014

#5720: bp_core_new_subnav_item() only barely works for non-user nav
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  2.1
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  dev-feedback  |
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"8556"]:
 #!CommitTicketReference repository="" revision="8556"
 Introduce 'no_access_url' param to bp_core_new_subnav_item()

 bp_core_new_subnav_item() allows access to be controlled using the
 'show_for_displayed_user' parameter. When this param is false for a given
 the function attempts to determine a proper redirect URL. But this URL
 determining logic assumes that we are looking at a user profile, while BP
 bp_core_new_subnav_item() for group navigation as well. Rather than
 to bake more URL determination logic into bp_core_new_subnav_item()
 itself, we
 introduce a 'no_access_url' parameter that allows calling functions to
 dynamically the URL that users should be directed to when they do not have
 permission to access a requested subnav item.

 Fixes #5720

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5720#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list