Uncaught ReferenceError: countChars is not defined
-
Hi there,
It appears there’s a bit of trouble with using All in One SEO with some post type editors. If AIO is enabled for a specific post type, in this case an Event Espresso post type, a JavaScript error is thrown and other scripts on the page no longer function.
I dug into the code a bit and found that if I add the event post type’s screen to the conditional in aioseop_module_class.php, the proper scripts get loaded and no JS errors are thrown.
if ( ( $screen->base != 'post' ) && ( $screen->base != 'edit-tags' ) && ( $screen->base != 'toplevel_page_shopp-products' ) ) return;
Would you consider adding a filter hook here to allow more editor screens to be added? This way other post type editor screens will be able include AIOSEO features without breakage.
- The topic ‘Uncaught ReferenceError: countChars is not defined’ is closed to new replies.