From 8aaf8b97060e9c30c98b5acd14d52c99dfb8bbbc Mon Sep 17 00:00:00 2001 From: Alexander Agnarson Date: Tue, 25 May 2021 13:18:17 +0200 Subject: [PATCH] 1.0.6 --- functions.php | 4 +++- readme.txt | 3 +++ style.css | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index c31e128..66d109e 100644 --- a/functions.php +++ b/functions.php @@ -90,8 +90,10 @@ add_action( 'after_setup_theme', 'halftype_setup' ); /* Custom navigation /* ------------------------------------ */ -add_action( 'wp', function() { +if ( ! class_exists( '\Halftype\Nav' ) ) { require_once 'functions/nav.php'; +} +add_action( 'wp', function() { $nav = new \Halftype\Nav(); $nav->enqueue( [ diff --git a/readme.txt b/readme.txt index 9047e6e..b12335f 100644 --- a/readme.txt +++ b/readme.txt @@ -81,6 +81,9 @@ Content images == Changelog == += 1.0.6 - 2021-05-25 = +* Fixed compatibility issue with custom nav and various security plugins + = 1.0.5 - 2021-04-13 = * Fixed: more visible focus style of search button * Fixed: tab focus order for header diff --git a/style.css b/style.css index 2d72f81..018fbd4 100644 --- a/style.css +++ b/style.css @@ -1,7 +1,7 @@ /* Theme Name: Halftype Theme URI: http://alx.media/themes/halftype/ -Version: 1.0.5 +Version: 1.0.6 Requires at least: 5.0 Requires PHP: 5.6 Tested up to: 5.6