Title: [Plugin: PS Disable Auto Formatting] Javascript errors on front end with 1.0.5
Last modified: August 19, 2016

---

# [Plugin: PS Disable Auto Formatting] Javascript errors on front end with 1.0.5

 *  [leup](https://wordpress.org/support/users/leup/)
 * (@leup)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-ps-disable-auto-formatting-javascript-errors-on-front-end/)
 * Hi,
 * I get some JS errors on the front end site with the new release 1.0.5
 * It complains that WP_Cookies do not exists.
 * It seems that you load ps-editor.js even on the front-end.
 * In my case, it’s useless. So, to get rid of the JS error, I’ve added in the _rewrite\
   _default\_script_ function a check if we’re on the admin site or not.
 *     ```
       function rewrite_default_script( $todo ) {
         global $wp_version, $wp_scripts;
   
         if (is_admin()) {
           [...]
         }
       	return $todo;
       }
       ```
   
 * [http://wordpress.org/extend/plugins/ps-disable-auto-formatting/](http://wordpress.org/extend/plugins/ps-disable-auto-formatting/)

The topic ‘[Plugin: PS Disable Auto Formatting] Javascript errors on front end with
1.0.5’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ps-disable-auto-formatting_dee4ba.
   svg)
 * [PS Disable Auto Formatting](https://wordpress.org/plugins/ps-disable-auto-formatting/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ps-disable-auto-formatting/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ps-disable-auto-formatting/)
 * [Active Topics](https://wordpress.org/support/plugin/ps-disable-auto-formatting/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ps-disable-auto-formatting/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ps-disable-auto-formatting/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [leup](https://wordpress.org/support/users/leup/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-ps-disable-auto-formatting-javascript-errors-on-front-end/)
 * Status: not resolved