Bugreport + Fix -> Editor Scripts loaded on Frontend
-
Hi,
very great plugin, please consider applying the following patch to load editor scripts not on frontend, as they aren’t needed there and will result in several javascript errors.
Just replace in homer.php beginning on line 133:
wp_enqueue_script( 'homer', plugins_url( $scripts, __FILE__ ), $this->dependencies, filemtime( plugin_dir_path( __FILE__ ) . $scripts ), true );
with
wp_enqueue_script( 'homer', plugins_url( $scripts, __FILE__ ), array('jquery'), filemtime( plugin_dir_path( __FILE__ ) . $scripts ), true );
and everything works as expected ??
Kind regards,
Matthias
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Bugreport + Fix -> Editor Scripts loaded on Frontend’ is closed to new replies.