wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

yoast_wpseo_primary

Open prathamesh-gharat opened this issue 1 year ago • 2 comments

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

Please give us a description of what happened

Yoast SEO creates blank entries _yoast_wpseo_primary_{taxonomy} in the post meta table even when no taxonomy terms have been set on a given article. My specific instance has 1,00,000+ articles with 5-6 taxonomies.

To Reproduce

On any standard WordPress installation

Step-by-step reproduction instructions

  1. Create a new post
  2. Save the post without setting any category / tag
  3. Check post meta

Expected results

  1. Yoast SEO should not save the _yoast_wpseo_primary_{taxonomy} meta fields when terms are not set.

Actual results

  1. Yoast SEO saves the _yoast_wpseo_primary_{taxonomy} meta fields even when the terms are not set.

Technical info

  • If relevant, which editor is affected (or editors):
  • [ ] Block Editor
  • [x] Gutenberg Editor
  • [ ] Elementor Editor
  • [ ] Classic Editor
  • [ ] Other:
  • Which browser is affected (or browsers):
  • [x] Chrome
  • [ ] Firefox
  • [ ] Safari
  • [ ] Other:

Used versions

  • Device you are using: Desktop

  • Operating system: Windows

  • PHP version: 8.2

  • WordPress version: 6.4.1

  • WordPress Theme: custom dev theme

  • Yoast SEO version: 21.9.1

  • Relevant plugins in case of a bug: None

prathamesh-gharat avatar Feb 03 '24 12:02 prathamesh-gharat

Hi @prathamesh-gharat

Thanks for using the Yoast SEO plugin and reporting this to us.

Yes, you are right the post meta for _yoast_wpseo_focuskeywords will be empty until the customer adds the related information. I understand that it's not a good approach for a website with many posts.

Our product team will assess the severity of this problem in relation to other open bug reports and new features. Based on their assessment and investigation of whether there's any specific reason for the empty values added to the database, the bug report will be given a priority level. Our developers work on the highest priority issues first. Unfortunately, this means we cannot give you an estimate of when they'll start working on your report.

josevarghese avatar Feb 05 '24 13:02 josevarghese

FR created for the empty values on database: https://github.com/Yoast/featurerequests/issues/958

josevarghese avatar Feb 05 '24 13:02 josevarghese