Bug Report: JS Error in WP Admin pages
-
On many pages throughout WordPress, this plugin is causing a JS Error (QTags)
On non-editor pages across the WordPress admin pages (for example, the Plugins page), I get a JavaScript error as a result of this plugin:
plugins.php:1699 Uncaught ReferenceError: QTags is not defined.This error comes from the following block of code:
<script type="text/javascript">QTags.addButton( 'btn1', 'Advisories and Contact', '<div class="hide-wrapper">[expand title="Advisories & Contact"]', '[/expand]</div>' ); QTags.addButton( 'btn2', 'Post Image', '[post_thumbnail size="large"]', '' );The solution is to add a check that first checks if QTags is a variable defined on that page before continuing on to call
QTags.addButton(...).
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Bug Report: JS Error in WP Admin pages’ is closed to new replies.