Debug cpt – causing edit-tags.php to not update via jquery
-
I have a few custom post types being registered through my plugin but one of them is causing jquery to break for all edit-posts.php and edit-tags.php uses when you add a new category/taxonomy. It forces a refresh to see the new term and then an unknown error when deleting + another refresh to see that it was deleted.
Firebug says “f.responses[0] is undefined” which I have to admit I don’t use FB console that often and am just taking it as I f..messed up.
It works again when I comment out one of the files which does the “course” taxonomy and “session” cpt:
require_once( MYPLUGIN_INCLUDES . 'class-courses.php' ); $this->courses = new Courses();
but when I comment out or delete that file’s contents, except the class constructor, it breaks again. How exactly do I go about debugging that? lol?!
I disabled all plugins and know it’s dealing with this file.
Side note – I’m using a term meta plugin and have the class adding custom meta fields to the course taxonomy only.
add_action('course_edit_form_fields',array(&$this, 'course_edit_form_fields')); add_action('course_add_form_fields',array(&$this, 'course_edit_form_fields')); add_action('created_course',array(&$this, 'update_course_meta')); add_action('edited_course',array(&$this, 'update_course_meta')); add_action('delete_course',array(&$this, 'delete_course_meta'));
- The topic ‘Debug cpt – causing edit-tags.php to not update via jquery’ is closed to new replies.