Skip to content

Commit

Permalink
Better docs, preserve funcitonality in case theme defines SHOW_STICKY…
Browse files Browse the repository at this point in the history
…_NAV and uses largo_sticky_nav_active
  • Loading branch information
benlk committed Apr 1, 2016
1 parent 1a43720 commit 5b6199d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ private function template_constants() {
/*
* SHOW_STICKY_NAV is deprecated.
* @link https://github.com/INN/Largo/issues/1135
* @since 0.5.5
*/
if ( ! defined( 'SHOW_STICKY_NAV' ) ) {
define( 'SHOW_STICKY_NAV', FALSE );
Expand Down
11 changes: 6 additions & 5 deletions inc/header-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
*
* Whether or not the sticky nav is displayed is determined by the javascript in js/navigation.js, since Largo 0.5.4.
*
* @return Bool
* @deprecated the constant SHOW_STICKY_NAV is deprecated
* @link https://github.com/INN/Largo/issues/1135
* @since 0.5.2
* @since 0.5.5
*/
function largo_sticky_nav_active() {
if ( SHOW_STICKY_NAV ) {
return true;
}
return false;
if ( SHOW_STICKY_NAV ) {
return true;
}
return false;
}

/**
Expand Down

0 comments on commit 5b6199d

Please sign in to comment.