Incorrect filtering of page title
-
Hey,
Just a quick note of a problem I’ve noticed with the theme while supporting a user of Easy Digital Downloads.
On line 662 in functions.php the following is echo’d –
echo ' | ' . get_the_title();
This causes problems if a plugin was to modify the title of a post (such as EDD which adds schema mark-up to download titles), in this case <span> tags where added to the title of the post.
A quick fix would be to change line 662 to –
echo ' | ' . $title;
You’d need to add the variable $title as a parameter in the function.
It should really be returned instead of echo’d though.
Just thought I’d let you know in-case this causes other users any problems 🙂
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Incorrect filtering of page title’ is closed to new replies.