Read More issues due to _e
-
Howdy,
Related to:
https://www.ads-software.com/support/topic/read-moreread-text-showing-up?replies=2
and
https://www.ads-software.com/support/topic/strange-read-more-text-in-header?replies=12
and reported to the Jetpack forums in
https://www.ads-software.com/support/topic/read-moreread-showing-up-in-header?replies=3
regarding “ReadMore” being echoed out at the top of the page, as seen in plugins that use the excerpt to determine og tags.I’ve isolated the issue to https://themes.trac.www.ads-software.com/browser/spasalon/1.4.4.4/functions/Excerpt/excerpt_length.php#L89
On line 89, the “Read More” text is being both translated and echoed via
_e()
, but since it is being returned by the function, it only needs to be translated via__()
.Since it is being both translated and echoed, when another plugin is running the excerpt that is pulling from the theme’s filter, it echoes out “ReadMore” wherever it falls within the code processing.
Switching
_e(
to__(
resolved this issue for me when testing it on Jetpack.Cheers!
- The topic ‘Read More issues due to _e’ is closed to new replies.