diff --git a/functions.php b/functions.php index 4d6ca47..1152ba8 100644 --- a/functions.php +++ b/functions.php @@ -90,8 +90,10 @@ add_action( 'after_setup_theme', 'curver_setup' ); /* Custom navigation /* ------------------------------------ */ -add_action( 'wp', function() { +if ( ! class_exists( '\Curver\Nav' ) ) { require_once 'functions/nav.php'; +} +add_action( 'wp', function() { $nav = new \Curver\Nav(); $nav->enqueue( [ diff --git a/readme.txt b/readme.txt index f885d1c..29a7126 100644 --- a/readme.txt +++ b/readme.txt @@ -84,6 +84,9 @@ Sidebar images == Changelog == += 1.1.9 - 2021-05-25 = +* Fixed compatibility issue with custom nav and various security plugins + = 1.1.8 - 2021-03-03 = * Fixed: mobile menu tabbing will enter in the menu even when it's closed * Fixed: add styles to focus states of menu and search diff --git a/style.css b/style.css index 3627e42..457c7c1 100644 --- a/style.css +++ b/style.css @@ -1,7 +1,7 @@ /* Theme Name: Curver Theme URI: http://alx.media/themes/curver/ -Version: 1.1.8 +Version: 1.1.9 Requires at least: 5.0 Requires PHP: 5.6 Tested up to: 5.6