Replies: 0
The plugin is currently breaking Yoast page/post titles be removing characters. This happens even if the settings in “Connections > Settings > SEO” are all disabled. Ie., merely activating the plugin with Yoast SEO in use triggers this.
Yoast_SEO::transformTitle hooks into wpseo_title regardless of settings being enabled/disabled, and passes the result of cnSEO::metaTitle through a trim. The issue is that trim takes a sequence of the characters in the form of a string, and the plguin is including the Yoast SEO title separator in that sequence of characters: return trim( $title, " \t\n\r\0\x0B$separator"); However, in many situations (maybe even by default as I don’t remember changing it) Yoast returns “–”, whereas I believe the plugin is expecting to see “–”, regardless, Yoast SEO doesn’t promise to return a single character.
So in reality return trim( $title, " \t\n\r\0\x0B$separator"); becomes return trim( $title, " \t\n\r\0\x0B–"); and all occurences of the lowercase letters A, D, H, N and S get removed from the either ends of the title. So the title “Goods” becomes “Goo”
Since disabling the SEO features still cause the code to run — which I’m not sure why even register the hooks if the setting is turned off, I had to remove $seperators from the trim argument for now to get things back to working order.
—
Connections Business Directory 10.1
Yoast SEO 15.9.2
WordPress 5.7
PHP 7.4.13