Windows server have script url problem in strong password module
-
In windows server I found issue in javascript path.
$module_path = ITSEC_Lib::get_module_path( __FILE__ ); wp_enqueue_script( 'itsec_strong_passwords', $module_path . 'js/script.js', array( 'jquery' ), ITSEC_Core::get_plugin_build() );
So, Currently I have fixed it by
$script_path = trailingslashit( plugins_url( 'better-wp-security/core/modules/strong-passwords') ); wp_enqueue_script( 'itsec_strong_passwords', $script_path . 'js/script.js', array( 'jquery' ), ITSEC_Core::get_plugin_build() );
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Windows server have script url problem in strong password module’ is closed to new replies.