[Plugin: WP Realtime Sitemap] Large amount of HTML errors
-
So I was using this for a site of mine (FRC site, using it for one of the requirements), and I found that the sitemap created a bunch of HTML errors. All for a really simple reason.
Line 1229:
$posts .= '<li><a href=' . get_permalink() . ' title="' . sprintf(esc_attr__('Permalink to %s', 'wp-realtime-sitemap'), the_title_attribute('echo=0')) . '" rel="bookmark">' . get_the_title() . '</a>' . $extra . '</li>';What was happening was it was creating all the links as , instead of
All I had to do to fix this was change it to
$posts .= '<li><a href="' . get_permalink() . '" title="' . sprintf(esc_attr__('Permalink to %s', 'wp-realtime-sitemap'), the_title_attribute('echo=0')) . '" rel="bookmark">' . get_the_title() . '</a>' . $extra . '</li>';Just adding doublequotes around the stuff after href=
Mind including this in the next version?
The topic ‘[Plugin: WP Realtime Sitemap] Large amount of HTML errors’ is closed to new replies.