visual-term-description-editor icon indicating copy to clipboard operation
visual-term-description-editor copied to clipboard

Error upon Updating custom taxonomy/term

Open sky1tech opened this issue 9 years ago • 3 comments

Upon updating a custom taxonomy under a custom post type I get the following error: : call_user_func_array() expects parameter 1 to be a valid callback, function 'fix_visual_term_description_editor_style' not found or invalid function name in: /wp-includes/plugin.php on line 525

Also, when you hit the Update button, it redirects you to the All [taxonomy] page instead of just telling you the term was updated/saved where you would then click View button to see your changes made. Hope that makes sense. Seemed weird that it jumped away from the page I was editing.

sky1tech avatar May 14 '16 20:05 sky1tech

And I just noticed it redirected so that the Posts button is highlighted as if I were editing a Post category.

Upon updating a custom taxonomy description it redirects here: /wp-admin/edit-tags.php?taxonomy=project_type

Would have made better sense to go here: /wp-admin/edit-tags.php?taxonomy=project_type&post_type=project

But really, it should have stayed on the page I was editing, here: /wp-admin/term.php?taxonomy=project_type&tag_ID=4&post_type=project

Hope this helps.

sky1tech avatar May 14 '16 20:05 sky1tech

I've fixed the missing callback bug in version 1.5.0.

sheabunge avatar May 27 '16 11:05 sheabunge

Regarding the second issue, for me after updating a term in a custom taxonomy I stay on the same page, under the correct post type, as your third example describes.

Perhaps this is being caused by the way you are registering the taxonomies? My tests are mostly using the defaults that accompany register_taxonomy() and register_post_type(), with only the bare minimum of arguments set.

sheabunge avatar May 27 '16 12:05 sheabunge