PS Disable Auto Formatting
Javascript errors on front end with 1.0.5 (1 post)

  1. leup
    Posted 4 years ago #


    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;


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PS Disable Auto Formatting
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic