Skip to content

Commit

Permalink
fix: fix mobile navi console error
Browse files Browse the repository at this point in the history
  • Loading branch information
drill-lancer committed Feb 17, 2025
1 parent 9ee1bee commit bd310e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _g2/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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依存はもう無いが、一応追加しておく.
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ [email protected]

== 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

Expand Down

0 comments on commit bd310e9

Please sign in to comment.