[buddypress-trac] [BuddyPress Trac] #7931: Possible regression in bp_core_new_subnav_item()
buddypress-trac
noreply at wordpress.org
Tue Jul 24 02:52:26 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 |
--------------------------------------+---------------------
Comment (by r-a-y):
In [changeset:"12195" 12195]:
{{{
#!CommitTicketReference repository="" revision="12195"
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.
See #7931 (trunk).
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7931#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list