{"id":7440898,"date":"2016-06-02T13:36:46","date_gmt":"2016-06-02T13:36:46","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/ysacf_exclude_fields-javascript-error\/"},"modified":"2016-08-31T18:41:14","modified_gmt":"2016-08-31T18:41:14","slug":"ysacf_exclude_fields-javascript-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/ysacf_exclude_fields-javascript-error\/","title":{"rendered":"ysacf_exclude_fields javascript error"},"content":{"rendered":"<p>I&#8217;m trying to exclude some fields from the content analysis using the following code in my functions file:<\/p>\n<pre><code>add_filter(&#039;ysacf_exclude_fields&#039;, function(){\n    return array(\n        &#039;acf_fc_layout&#039;\n    );\n});<\/code><\/pre>\n<p>Whenever I enable it the content analysis completely breaks and I get the following javascript error in the console: wp-seo-post-scraper-324.min.js?ver=3.2.5:6 Uncaught TypeError: Cannot read property &#8216;resultText&#8217; of undefined<\/p>\n<p>I&#8217;ve tried disabling all plugins except for Yoast, ACF and this plugin.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/acf-content-analysis-for-yoast-seo\/<\/p>\n","protected":false},"template":"","class_list":["post-7440898","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7440898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7440898\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7440898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}