admin/content page shows score from non-current node revisions

Created on 11 April 2017, about 8 years ago
Updated 10 January 2025, 3 months ago

The problem is in yoast_seo_get_score() which takes only $nid as an argument, while it should also take revision id. In this case the function is called from yoast_seo_handler_rating class. Because the revision id is not specified, the score returned is not necesarily the one associated with latest revision.

Furthermore when deleting node revisions, the corresponding revisions of yoast scores are not being deleted from yoast_seo table.
You can use hook_node_revision_delete() to achieve the desired result.

🐛 Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇵🇱Poland pawel.traczynski Warsaw

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024