• FYI there has been a few threads about JS errors (Failed to initialize plugin: formstack) when on taxonomy edit or list screens. There was a fix suggested in this thread, but the fix did not work (logic was a bit off).

    I have rewritten @joelnewcomer’s suggested fix for line 173 of plugin.pphp to:

    if ( (! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' )) || !in_array( $GLOBALS['hook_suffix'], array('post.php', 'post-new.php') ) ) {

    This seems to fix it both for the taxonomy listing pages, and for the term edit pages.

    • This topic was modified 3 years, 10 months ago by Peter Hebert. Reason: WP coding standards in suggested fix
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JS error’ is closed to new replies.