Fix jquery script url for wordpress subfolder sites
-
Hello!
I had an issue with your plugin.
I’m using a subfolder for wordpress (like described here: Giving WordPress Its Own Directory)If you do so, Jquery won’t load (because the path is wrong) and therefor all the scripts won’t work.
You can fix this issue if you change the line 483 in wp-maintenance-mode.php from:
‘jquery’ => !empty($wp_scripts->registered[‘jquery-core’]) ? home_url($wp_scripts->registered[‘jquery-core’]->src) : ‘//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js’,
to
‘jquery’ => !empty($wp_scripts->registered[‘jquery-core’]) ? site_url($wp_scripts->registered[‘jquery-core’]->src) : ‘//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js’,So just swapp home_url with site_url.
Is that fix ok or will it break something else?
Would be awesome if you could implement the fix in the next release!
Thank you for the awesome plugin!
Cheers!
Dom from rocket.works
- The topic ‘Fix jquery script url for wordpress subfolder sites’ is closed to new replies.