Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【確認待ち】ウィジェット画面でのモバイルナビのエラーを修正 #1230

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading