wordpress-seo
wordpress-seo copied to clipboard
yoast_wpseo_primary
- [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
- Create a new post
- Save the post without setting any category / tag
- Check post meta
Expected results
- Yoast SEO should not save the
_yoast_wpseo_primary_{taxonomy}meta fields when terms are not set.
Actual results
- 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
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.
FR created for the empty values on database: https://github.com/Yoast/featurerequests/issues/958