[buddypress-trac] [BuddyPress Trac] #7931: Possible regression in bp_core_new_subnav_item()

buddypress-trac noreply at wordpress.org
Tue Jul 24 02:52:06 UTC 2018


#7931: Possible regression in bp_core_new_subnav_item()
--------------------------------------+---------------------
 Reporter:  dontdream                 |       Owner:  r-a-y
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  3.2.0
Component:  Navigation                |     Version:  3.0.0
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |
--------------------------------------+---------------------
Changes (by r-a-y):

 * owner:  (none) => r-a-y
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"12194" 12194]:
 {{{
 #!CommitTicketReference repository="" revision="12194"
 Navigation: Ensure subnav menus can be registered before the parent nav is
 registered.

 In #7659, a bug was fixed where restricted subnav menus should be
 redirected instead of throwing a 404.  The side-effect of the fix is this
 broke how plugins can register subnav menus before the parent nav is
 created.

 This commit rectifies the problem by not bailing out if the parent nav
 cannot be found during subnav menu registration.  Includes a unit-test.

 Props dontdream, boonebgorges, r-a-y.

 Fixes #7931 (3.x branch).
 }}}

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


More information about the buddypress-trac mailing list