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

Removed custom field data is kept in Snippet preview #10128

Open
dariaknl opened this issue Jun 25, 2018 · 0 comments
Open

Removed custom field data is kept in Snippet preview #10128

dariaknl opened this issue Jun 25, 2018 · 0 comments

Comments

@dariaknl
Copy link
Contributor

dariaknl commented Jun 25, 2018

How can we reproduce this behavior?

  1. Install Advanced Custom Fields plugin and ACF Content Analysis for Yoast SEO.
  2. Create Custom Field Group with Custom Field "test field daria" and publish it.
  3. Go to Post and fill in "test field daria" with "test content".
  4. Update Post.
  5. Open Snippet Editor and type in SEO title "%t".
  6. Choose from the drop down list "Test field daria (custom field)".
  7. Check that in preview "test content" is shown.
  8. Update your Post.
  9. Navigate to Custom Fields and remove "test field daria" from your Custom Field Group and Update.
  10. Go to your Post.

Custom field "test field daria" is not shown in your Post, but

  • in Snippet preview in SEO title you still see all data:

screen shot 2018-06-25 at 10 23 31

  • in source the data is still kept:
    <meta property="og:title" content="title test content" />

Expected behavior

In the previous version 7.6.1 this worked in the following way:
after you remove custom field, the Snippet Preview does not keep the data, only cf_custom_field name is shown:

screen shot 2018-06-25 at 10 27 40

But please note: in 7.6.1 the removed content of custom field is kept on the source!
<meta property="og:title" content="seo title dariadaria" />  

Technical info

  • WordPress version: 4.9.6
  • Yoast SEO version: 7.7 RC5
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

3 participants