-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate the constant SHOW_STICKY_NAV #1136
Conversation
…play_article, and add deprecation comment in functions.php
…as that option is no longer used. Also remove the test for that.
… Largo, and now only returns the value of SHOW_STICKY_NAV, which is itself deprecated.
This should probably not be a hotfix because it would be a breaking change for sites that are currently using this constant in a child theme (right?) |
It's a breaking change in that it's a change from the previous functionality, because the conditions regarding The current functionality is broken if the child theme doesn't define
|
Based on discussion, we're leaving This will be deprecated in 0.5.5, and at that time we should go through child themes and remove their dependence upon |
it will be deprecated in 0.5.6. 0.5.5 will restore the expected behavior from pre 0.5.4 until we communicate with sites using these constants re: how the change will affect them |
A misphrasing on my part, I guess. This PR:
We should've marked Should this specific PR be bumped to 0.5.6, and in 0.5.5 we try to approximate the show/don't-show logic from |
This reverts commit 44d0de5.
…_NAV and uses largo_sticky_nav_active
None of our Largo child themes use
|
Changes
SHOW_STICKY_NAV
is deprecated in the constants list in the dev docsshow_sticky_nav
was removed in Rework navigation elements #1024,usesthis PR definessticky_nav_display_article
as an approximation of whether or not the sticky nav should be displayed. This is a temporary fix, and is not meant to accurately reflect whether or not the sticky nav should be displayed. This is only to avoid the sticky nav never displaying.SHOW_STICKY_NAV
as false.show_sticky_nav
ininc/updates.php
show_sticky_nav
updaterlargo_sticky_nav_active
as deprecated as well, because that function existed to returnSHOW_STICKY_NAV
.largo_sticky_nav_active
has no tests.Why
This is a compatibility fix, to ensure that sites still using
SHOW_STICKY_NAV
will continue to work.Because
SHOW_STICKY_NAV
no longer is an accurate descriptor of whether or not the sticky nav should be displayed, and because the decision on whether or not to show the sticky nav is made bynavigation.js
since #1024.We're keeping
SHOW_STICKY_NAV
to avoid undefined constant errors in child themesand giving it a value that isn't false so that the navigation will continue to display,to avoid problems on sites usingSHOW_STICKY_NAV
. HELPDESK-568 is such a site.See #1135 for the non-hotfix solution for this issue:
SHOW_STICKY_NAV
and remove those conditionals if and only if the child theme does not defineSHOW_STICKY_NAV
to true.For HELPDESK-568 and #1135