Quantcast
Channel: WordPress.org Forums » [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Support
Viewing all articles
Browse latest Browse all 42467

barticus on "[Plugin: WordPress SEO by Yoast] Script Syntax Error: Unexpected token &"

$
0
0

I believe i have found the problem, although it is not a complete work around, and may not be appropriate in all cases...

in the file /wp-content/plugins/wordpress-seo/admin/class-pointers.php:

  • change line 233 from <?php echo esc_js( $button2_function ) ; ?> to <?php echo $button2_function ; ?>, and similarly,
  • change line 239 from <?php echo esc_js( $button1_function ); ?> to <?php echo $button1_function ; ?>

this function changes special characters to HTML character specifiers (i.e " to ") which is what causes this.

Please note i havent fully tested this so i can't say that it works everywhere in the admin section (which is the only place this is loaded).

Good Luck!


Viewing all articles
Browse latest Browse all 42467

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>