Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The word count is duplicated with Advanced Custom Fields Pro #316

Open
2 tasks done
suascat opened this issue Oct 3, 2022 · 0 comments
Open
2 tasks done

The word count is duplicated with Advanced Custom Fields Pro #316

suascat opened this issue Oct 3, 2022 · 0 comments

Comments

@suascat
Copy link

suascat commented Oct 3, 2022

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

With Yoast SEO Free 19.7.1, ACF Content Analysis for Yoast SEO 3.0.1, and Advanced Custom Fields PRO 6.0.1, there's an issue where the content analysis seems to double or duplicate and shows an incorrect number of the word count.

So if you have text that is 350 words, in the SEO analysis, it'll display 700 words.

If you go to your browser's console and use the YoastSEO.analysis.collectData().getText() script, you'll see that the text repeats twice.

If you deactivate ACF PRO and use the free version of ACF, the issue doesn't occur, so it appears to be specific to the PRO version of ACF.

Please describe what you expected to happen and why.

We expected that the word count assessment would be correct.

How can we reproduce this behavior?

  1. Install and activate Yoast SEO, ACF Content Analysis for Yoast SEO, and ACF PRO.
  2. Create a new post (no need to use any ACF fields, just use default editor)
  3. Add text and take note of the word count (example 100 words) and then check SEO analysis in the Yoast SEO meta box and see that the word count shows 200 words instead.

Technical info

  • WordPress version: 6.0.2
  • ACF Content Analysis for Yoast SEO version: 3.0.1
  • Yoast SEO version: 19.7.1
  • ACF type: PRO
  • ACF version: 6.0.1
  • Relevant plugins in case of a bug: N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant