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

Using deprecated replacevars show the wrong Snippet Preview length #10157

Open
2 tasks done
benvaassen opened this issue Jun 26, 2018 · 1 comment
Open
2 tasks done

Using deprecated replacevars show the wrong Snippet Preview length #10157

benvaassen opened this issue Jun 26, 2018 · 1 comment

Comments

@benvaassen
Copy link
Contributor

benvaassen commented Jun 26, 2018

  • 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.

When using a deprecated meta variable (#9893) in the snippet preview, the length doesn't change (the green bar stays the same length) but the meta variable is showing on the frontend.

no

yes

Please describe what you expected to happen and why.

I expected the title length to change and the snippet preview to show the current year.

How can we reproduce this behavior?

  1. Open a (new) post.
  2. Add the variable %%currentyear%% in the snippet preview title and see that the title length feedback doesn't change.
  3. Check the source code and see that the %%currentyear%% is replaced with 2018 and the length differs from the one in the snippet preview.

Additional context

This is an issue because my title length in the snippet preview is different from the actual length shown on the frontend. This can happen when I rewrite old posts which might still have the deprecated replacevars in the title (or description). My length feedback would be incorrect and my title could possibly be cut off in the Google search results without my knowledge.

Technical info

  • WordPress version: 4.9.6
  • Yoast SEO version: 7.7
  • Tested with theme: Twenty Seventeen
@ghost
Copy link

ghost commented Jun 27, 2018

Please inform the customer of conversation # 394272 when this conversation has been closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants