Test titles with The SEO Framework Plugin
Ref: https://wordpress.org/support/topic/strange-seo-yoast-or-die/
The issue is that it actually removes WordPress legacy code within function ampforwp_remove_title_tags().
Instead, you should filter wp_get_document_title():
https://github.com/Automattic/amp-wp/blob/22b8287c8a84f774f73942c3c08027ddad3f1e0d/includes/class-amp-post-template.php#L52
Stack:
pre_get_document_title at priority 10.ampforwp_add_custom_title_tag() in the title.SEO plugins usually remove all other filters, so the compatibility will be set automatically.
I'll send a PR. Be sure to test it out before including it, both with legacy settings and in combination with SEO plugins (Yoast/AIO/TSF/etc.).
Hey @sybrew thanx for the info and also for the commit, will check the PR thoroughly 馃憤
Most helpful comment
The issue is that it actually removes WordPress legacy code within function
ampforwp_remove_title_tags().Instead, you should filter
wp_get_document_title():https://github.com/Automattic/amp-wp/blob/22b8287c8a84f774f73942c3c08027ddad3f1e0d/includes/class-amp-post-template.php#L52
Stack:
pre_get_document_titleat priority 10.ampforwp_add_custom_title_tag()in the title.SEO plugins usually remove all other filters, so the compatibility will be set automatically.
I'll send a PR. Be sure to test it out before including it, both with legacy settings and in combination with SEO plugins (Yoast/AIO/TSF/etc.).