WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. leup
    Member
    Posted 3 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic