mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 01:40:40 +08:00

The old hamburger menu widget was customizable via the `api.decorateWidget("hamburger-menu:generalLinks")` plugin API. As the hamburger menu is going to be replaced by the sidebar dropdown, we need a way to smoothly transit plugins and theme components to the new sidebar. This commit makes a best effort attempt to bridge `api.decorateWidget` with `api.addCommunitySectionLink`. If an error is encountered, a deprecation notice is logged.