From bd310e91c5f64e9c3b9ca874e5b0c590ceb6bdfe Mon Sep 17 00:00:00 2001 From: drill-lancer Date: Mon, 17 Feb 2025 12:00:11 +0900 Subject: [PATCH] fix: fix mobile navi console error --- _g2/functions.php | 3 +++ readme.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/_g2/functions.php b/_g2/functions.php index bf9ec9d3..14808104 100644 --- a/_g2/functions.php +++ b/_g2/functions.php @@ -201,6 +201,9 @@ function lightning_addJs() { if ( 'widgets.php' === $pagenow ) { return; } + if ( 'index.php' === $pagenow && false !== strpos( $_SERVER['REQUEST_URI'], 'rest_route' ) ) { + return; + } wp_register_script( 'lightning-js', get_template_directory_uri() . '/assets/js/lightning.min.js', array(), LIGHTNING_THEME_VERSION, true ); wp_localize_script( 'lightning-js', 'lightningOpt', apply_filters( 'lightning_localize_options', array() ) ); // jsのjQuery依存はもう無いが、一応追加しておく. diff --git a/readme.txt b/readme.txt index d93d98ab..5d50bc9f 100644 --- a/readme.txt +++ b/readme.txt @@ -35,6 +35,7 @@ vk-develop@vektor-inc.co.jp == Changelog == +[ G2 ][ Bug fix ] Fix mobile navi error on widget scrren. [ G3 ][ Bug fix ] Adjusting the unintentional vertical margins between blocks in the editor [ G3 / G2 ] Cope with plugin Booking Package