You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Yoast SEO sidebar doesn't save the metadata on block editor when the Yoast SEO metabox is disabled #21851
I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened
If Yoast SEO metabox is disabled, then Yoast SEO sidebar doesn't save the metadata like SEO title, meta description. Also, this data does not appear in the page source and remains missing from the post overview page as well.
This issue with saving data applies not only to the SEO title/description but also to all our settings added via the sidebar.
To Reproduce
Step-by-step reproduction instructions
Disable Yoast SEO metabox from post editor > Preference > General > Advanced and disable the Yoast SEO toggle button.
Add a new post, use the Search Appearance tab of Yoast SEO sidebar to add the meta description [for example]
Publish the post. Refresh the page and open the Search Appearance tab of Yoast SEO sidebar.
Expected results
The data added via Yoast SEO sidebar should remain saved without metabox being enabled.
Actual results
Metadata is not being saved in the Yoast SEO sidebar
changed the title [-]Yoast SEO sidebar doesn't save the metadata[/-][+]Yoast SEO sidebar doesn't save the metadata on Block editor when the Yoast SEO metabox is disabled[/+]on Nov 21, 2024
changed the title [-]Yoast SEO sidebar doesn't save the metadata on Block editor when the Yoast SEO metabox is disabled[/-][+]Yoast SEO sidebar doesn't save the metadata on block editor when the Yoast SEO metabox is disabled[/+]on Nov 21, 2024
I got here from WordPress/gutenberg#67207 which has been acknowledged as a regression and a fix is in the works. It seems the earliest that WP can release with the fix will be in 6.7.2 sometime after December 2.
In case the issue is more urgent for Yoast, it seems possible to patch with something like the following:
Given that Yoast renders React components, I think it may be done alternatively with hooks (useSelect/useDispatch) and added to the plugins sidebar component.
Activity
shabnam611 commentedon Nov 21, 2024
+1 https://wordpress.org/support/topic/changes-not-saved-11/
[-]Yoast SEO sidebar doesn't save the metadata[/-][+]Yoast SEO sidebar doesn't save the metadata on Block editor when the Yoast SEO metabox is disabled[/+][-]Yoast SEO sidebar doesn't save the metadata on Block editor when the Yoast SEO metabox is disabled[/-][+]Yoast SEO sidebar doesn't save the metadata on block editor when the Yoast SEO metabox is disabled[/+]stokesman commentedon Nov 22, 2024
I got here from WordPress/gutenberg#67207 which has been acknowledged as a regression and a fix is in the works. It seems the earliest that WP can release with the fix will be in 6.7.2 sometime after December 2.
In case the issue is more urgent for Yoast, it seems possible to patch with something like the following:
Given that Yoast renders React components, I think it may be done alternatively with hooks (
useSelect/useDispatch) and added to the plugins sidebar component.josevarghese commentedon Nov 25, 2024
I am closing this issue as an issue has already been opened at the Gutenberg repo: WordPress/gutenberg#67207.
The issue is not specific to the Yoast SEO plugin and it can be reproducible for other plugins with metabox set as disabled and having a sidebar.