wordpress-seo
wordpress-seo copied to clipboard
Author settings can be wiped out if global features are toggled
For the Yoast SEO settings fields in the user's profile, we show them only when the respective feature is enabled. In order:
- we show the Title to use for Author page and Meta description to use for Author page fields only when the
Enable author archivessetting is enabled - we show the Do not allow search engines to show this author's archives in search results checkbox only when the
Enable author archivessetting is enabled - we show the Disable SEO analysis checkbox only when the
SEO analysisfeature setting is enabled - we show the Disable readability analysis checkbox only when the
Readability analysisfeature setting is enabled - we show the Disable inclusive language analysis checkbox only when the
Inclusive language analysisfeature setting is enabled
The problem is that if we populate a field (or check a checkbox) and then we disable the respective global setting and then saved something else in the user profile, those previous saves will be overwritten.
Which means that if we later re-enable the global setting, the user-specific setting will have been forgotten
Steps to replicate
- Go to a user's profile, while the Yoast SEO settings are the default ones
- Fill the
Title to use for Author pagewith something (or any of the other user settings, mentioned above) - Go to Yoast SEO->Settings->Author archives and disable the
Enable author archives(or any of the other respective global settings, mentioned above) - Refresh the user's profile and save it again (for a totally unrelated thing, like for example enabling the
Show Toolbar when viewing sitesetting ) - Go to Yoast SEO->Settings->Author archives and re-enable the
Enable author archivessetting - Refresh the user's profile
What's expected:
- for the
Title to use for Author pagesetting to have its original value persisted
What happens instead:
- the
Title to use for Author pagesetting has no value