Wrong path to jquery if wordpress is installed in subdirectory
-
Problem:
If HomeUrl differs from SiteUrl (this is the case if wordpress is installed in subdirectory but index.php lies in site root) Countdown doesn’t function.Solution:
In “path-to-plugins/wp-maintenance-mode/includes/classes/wp-maintenance-mode.php” line 483 change:'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',
- The topic ‘Wrong path to jquery if wordpress is installed in subdirectory’ is closed to new replies.