Yoast / yoast-acf-analysis

WordPress plugin that adds the content of all ACF fields to the Yoast SEO score analysis.
https://wordpress.org/plugins/acf-content-analysis-for-yoast-seo/
GNU General Public License v3.0
61 stars 20 forks source link

Terms is not an array in yoast-acf-analysis.js, scrape function #143

Open jerome-barbato opened 6 years ago

jerome-barbato commented 6 years ago

Please give us a description of what happened.

In the backoffice, on the hompage, yoast-acf-analysis.js has a fatal error line 724 at terms = _.map( terms, function(term){ term.trim() } ); because terms is not an array, this error only occur in this page.

I've made a quick fix, checking the type of terms before running the map function.

How can we reproduce this behavior?

Please find attached the acf json for this page : group_596f36ae7d00f.json

Technical info