Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

edd_microdata_title filter span tags show in adjacent posts links in head #1142

Closed
will-b opened this Issue · 9 comments

3 participants

will-b Pippin Williamson Mark Jaquith
will-b

span tags from edd_microdata_title filter on download single show up in the adjacent post links in the head ( <link rel='prev' title='<span....')

Pippin Williamson

Those are most likely being added incorrectly by your theme. Can you paste the contents of your header.php?

will-b

Output in head
<link rel='prev' title='&lt;span itemprop=&quot;name&quot;&gt;Sample ....

Was using the Digital store theme, have not modified the header.
https://github.com/sksmatt/Digital-Store/blob/master/header.php

Checked Twenty Twelve, Eleven, same thing.

Seems like wordpress only escape the title

wp-includes/link-template.php:

$link = $previous ? "<link rel='prev' title='" : "<link rel='next' title='";
$link .= esc_attr( $title );
$link .= "' href='" . get_permalink($post) . "' />\n";
Pippin Williamson

Ah, look at that, you've just identified a WordPress core bug (I think). I'm digging into it further.

Pippin Williamson

I've submitted a core trac ticket on the issue: http://core.trac.wordpress.org/ticket/24232#ticket

will-b

thanks, will keep an eye on it.

Pippin Williamson

Looks doubtful that core will get this taken care of anytime soon.

will-b

Guess getting 3.6 ready is priority as its a bit behind schedule. Will check back in a couple of weeks. Thanks for the update.

Mark Jaquith
if ( ! did_action( 'wp_head' ) )
    return $title;
Pippin Williamson

Ah, of course, thanks @markjaquith

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.