From c07436c1f6af4422fc917e56f45b43710e463c54 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Fri, 20 Feb 2026 08:21:00 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20Remove=20bogus=20paramete?= =?UTF-8?q?rs=20that=20were=20causing=20critical=20errors,=20remove=20unne?= =?UTF-8?q?eded=20version=20checks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/class-enqueue.php | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/lib/class-enqueue.php b/lib/class-enqueue.php index b9814e1..5e46ff4 100644 --- a/lib/class-enqueue.php +++ b/lib/class-enqueue.php @@ -52,13 +52,8 @@ class Enqueue { if ( file_exists( $theme_dir . $js_path ) ) { $version = filemtime( $theme_dir . $js_path ); wp_enqueue_script( 'jquery' ); // Needed by downstream scripts; modules can't depend on classic scripts. - if ( version_compare( get_bloginfo('version'), '6.9', '>=' ) ) { - wp_enqueue_script_module( 'basicwp-theme', $theme_uri . $js_path, array(), $version, [ 'in_footer' => true ] ); - wp_enqueue_script_module( 'basicwp-button', $theme_uri . '/static/js/components/button.js', array( 'basicwp-theme' ), $version, [ 'in_footer' => true ] ); - } else { - wp_enqueue_script_module( 'basicwp-theme', $theme_uri . $js_path, array(), $version, true ); - wp_enqueue_script_module( 'basicwp-button', $theme_uri . '/static/js/components/button.js', array( 'basicwp-theme' ), $version, true ); - } + wp_enqueue_script_module( 'basicwp-theme', $theme_uri . $js_path, array(), $version ); + wp_enqueue_script_module( 'basicwp-button', $theme_uri . '/static/js/components/button.js', array( 'basicwp-theme' ), $version ); } } @@ -97,13 +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. - if ( version_compare( get_bloginfo('version'), '6.9', '>=' ) ) { - wp_enqueue_script_module( 'basicwp-admin', $theme_uri . $admin_js_path, array(), $version, [ 'in_footer' => true ] ); - wp_enqueue_script_module( 'basicwp-button', $theme_uri . '/static/js/components/button.js', array( 'basicwp-admin' ), $version, [ 'in_footer' => true ] ); - } else { - 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 ); } } }