Fix for js error breaking other plugins
-
As many other people have commented and diagnosed, this plugin cases a JS error in Dashboard. It stops JS and breaks any other plugin or core feature relying on JS. For instance, I got blank admin screens in NextGen Gallery.
A fix is to use the built-in WP jquery-ui to replace the custom script this pluigin loads. The following components match up with the stuff in that script and should work. Anyway, no more breakage.
simple-slider.php
ver. 1.2, line 43///////////////////////////////////////////////////////////////// // delete, causes JS errors that break other plugins and/or core ///////////////////////////////////////////////////////////////// // wp_register_script( 'jquery-ui-custom', plugins_url( // 'jquery-ui-1.8.15.custom.min.js', __FILE__ ), array( 'jquery' ), // '1.8.15', false ); // wp_enqueue_script( 'jquery-ui-custom' ); ////////////////////////////////////////////////////////////////// // add ////////////////////////////////////////////////////////////////// wp_enqueue_script( 'jquery-ui-widget' ); wp_enqueue_script( 'jquery-ui-position' ); wp_enqueue_script( 'jquery-ui-autocomplete' ); wp_enqueue_script( 'jquery-ui-tabs' ); ////////////////////////////////////////////////////////////////
- The topic ‘Fix for js error breaking other plugins’ is closed to new replies.