1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-21 20:54:17 +08:00
buddypress/tests/phpunit/testcases/core/nav
r-a-y 302843f875 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).

git-svn-id: https://buddypress.svn.wordpress.org/branches/3.0@12194 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2018-07-24 02:52:05 +00:00
..
backCompat.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
bpCoreMaybeHookNewSubnavScreenFunction.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
bpCoreNewNavItem.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
bpCoreNewSubnavItem.php Navigation: Ensure subnav menus can be registered before the parent nav is registered. 2018-07-24 02:52:05 +00:00
bpCoreRemoveNavItem.php Fix incorrect remove_action and remove_filter usage for WordPress 4.7. 2016-11-28 22:33:55 +00:00
bpCoreRemoveSubnavItem.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00
bpGetNavMenuItems.php Use static factory method throughout PHPUnit tests. 2017-11-03 19:44:10 +00:00