From dc33dea120e84a532dfb1eb8607ed8ac9b69ac0b Mon Sep 17 00:00:00 2001 From: willpalahnuk <90785449+willpalahnuk@users.noreply.github.com> Date: Fri, 30 Jan 2026 18:00:56 -0600 Subject: [PATCH 1/4] Refactor footer navigation retrieval logic Prevent: Warning: Undefined array key "footer_navigation" in /Users/will/Local Sites/banffs-indigenous-experiences-map/app/public/wp-content/themes/Banff/footer.php on line 19 Warning: Undefined property: WP_Error::$term_id in /Users/will/Local Sites/banffs-indigenous-experiences-map/app/public/wp-content/themes/Banff/footer.php on line 20 --- footer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/footer.php b/footer.php index bde27c0..537c3b1 100644 --- a/footer.php +++ b/footer.php @@ -16,8 +16,9 @@ $copyright_text = getFieldValue( 'footer.copyright_text' ) ? getFieldValue( 'foo $copyright = str_replace( '%Y', gmdate( 'Y' ), $copyright_text ); $locations = get_nav_menu_locations(); -$footerMenu = get_term( $locations['footer_navigation'], 'nav_menu' ); -$footerNav = wp_get_nav_menu_items( $footerMenu->term_id ); +$footerNav = ! empty( $locations['footer_navigation'] ) + ? ( wp_get_nav_menu_items( (int) $locations['footer_navigation'] ) ?: [] ) + : []; ?> From 131252bd67326d171d05124d9fb954a27bb889e6 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Thu, 5 Feb 2026 12:36:35 -0600 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=90=9E=20fix:=20Fix=20bogus=20target?= =?UTF-8?q?=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/components/menu-items/single.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/components/menu-items/single.php b/views/components/menu-items/single.php index a08bf1c..7549302 100644 --- a/views/components/menu-items/single.php +++ b/views/components/menu-items/single.php @@ -26,7 +26,7 @@ if ( ! empty( $item->classes ) ) { From 7d24009fae4d203f2a9e2ae630c2778b2b51adcd Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Wed, 18 Feb 2026 11:57:40 -0600 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=90=9E=20fix:=20Get=20rid=20of=20para?= =?UTF-8?q?meters=20causing=20critical=20errors=20in=20script=20calls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/class-enqueue.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/class-enqueue.php b/lib/class-enqueue.php index 722eb62..9ade3da 100644 --- a/lib/class-enqueue.php +++ b/lib/class-enqueue.php @@ -92,8 +92,8 @@ class Enqueue { if ( file_exists( $theme_dir . $admin_js_path ) ) { $version = filemtime( $theme_dir . $admin_js_path ); wp_enqueue_script( 'jquery' ); // Needed by downstream scripts; modules can't depend on classic scripts. - wp_enqueue_script_module( 'basicwp-admin', $theme_uri . $admin_js_path, array(), $version, true ); - wp_enqueue_script_module( 'basicwp-button', $theme_uri . '/static/js/components/button.js', array( 'basicwp-admin' ), $version, true ); + wp_enqueue_script_module( 'basicwp-admin', $theme_uri . $admin_js_path, array(), $version ); + wp_enqueue_script_module( 'basicwp-button', $theme_uri . '/static/js/components/button.js', array( 'basicwp-admin' ), $version ); } } } From 179754d6d0026205ef88c7dde98d7f0835a1048f Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Thu, 19 Feb 2026 14:10:59 -0600 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=90=9E=20fix:=20Cleaned=20up=20phpcs?= =?UTF-8?q?=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- footer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/footer.php b/footer.php index 537c3b1..4ce59d1 100644 --- a/footer.php +++ b/footer.php @@ -15,10 +15,10 @@ $copyright_text = getFieldValue( 'footer.copyright_text' ) ? getFieldValue( 'foo $copyright = str_replace( '%Y', gmdate( 'Y' ), $copyright_text ); -$locations = get_nav_menu_locations(); +$locations = get_nav_menu_locations(); $footerNav = ! empty( $locations['footer_navigation'] ) - ? ( wp_get_nav_menu_items( (int) $locations['footer_navigation'] ) ?: [] ) - : []; + ? ( wp_get_nav_menu_items( (int) $locations['footer_navigation'] ) ? wp_get_nav_menu_items( (int) $locations['footer_navigation'] ) : array() ) + : array(); ?>