SMF
SMF copied to clipboard
Restore showing profile areas added with `integrate_profile_areas`
integrate_profile_areas should work (retain functionality from 2.0). The problem is that the changed array is lost when createMenu() exits, so that the calling code in Profile.php thinks that nothing happened.
What this PR does
- Move the hook point from
createMenu()toProfile()(like it was in 2.0 which I think is proper). - Deprecate
integrate_pre_profile_areasbecause it is unused now. - Add a new menu option
disable_hook_callto make this work right.
Alternative fix
Pass $menuData as a reference
Related issues
- https://github.com/SimpleMachines/SMF/issues/3118
- https://github.com/SimpleMachines/SMF/issues/3145
- https://github.com/SimpleMachines/SMF/issues/3945