mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
FEATURE: Remove support for legacy navigation menu (#23752)
Why this change? Back in May 17 2023 along with the release of Discourse 3.1, we announced on meta that the legacy hamburger dropdown navigation menu is deprecated and will be dropped in Discourse 3.2. This is the link to the announcement on meta: https://meta.discourse.org/t/removing-the-legacy-hamburger-navigation-menu-option/265274 ## What does this change do? This change removes the `legacy` option from the `navigation_menu` site setting and migrates existing sites on the `legacy` option to the `header dropdown` option. All references to the `legacy` option in code and tests have been removed as well.
This commit is contained in:

committed by
GitHub

parent
2c346a1ba6
commit
832b3b9e60
@ -2013,20 +2013,18 @@ class UsersController < ApplicationController
|
||||
permitted.concat UserUpdater::TAG_NAMES.keys
|
||||
permitted << UserUpdater::NOTIFICATION_SCHEDULE_ATTRS
|
||||
|
||||
if !SiteSetting.legacy_navigation_menu?
|
||||
if params.has_key?(:sidebar_category_ids) && params[:sidebar_category_ids].blank?
|
||||
params[:sidebar_category_ids] = []
|
||||
if params.has_key?(:sidebar_category_ids) && params[:sidebar_category_ids].blank?
|
||||
params[:sidebar_category_ids] = []
|
||||
end
|
||||
|
||||
permitted << { sidebar_category_ids: [] }
|
||||
|
||||
if SiteSetting.tagging_enabled
|
||||
if params.has_key?(:sidebar_tag_names) && params[:sidebar_tag_names].blank?
|
||||
params[:sidebar_tag_names] = []
|
||||
end
|
||||
|
||||
permitted << { sidebar_category_ids: [] }
|
||||
|
||||
if SiteSetting.tagging_enabled
|
||||
if params.has_key?(:sidebar_tag_names) && params[:sidebar_tag_names].blank?
|
||||
params[:sidebar_tag_names] = []
|
||||
end
|
||||
|
||||
permitted << { sidebar_tag_names: [] }
|
||||
end
|
||||
permitted << { sidebar_tag_names: [] }
|
||||
end
|
||||
|
||||
if SiteSetting.enable_user_status
|
||||
|
Reference in New Issue
Block a user