• – Sorry it garbled the code:

    I’ve noticed that WP-PageNavi breaks validation if WordPress is set to a xhtml strict doctype – the ampersand in &paged (in all links that WP-PageNavi generates) needs to be generated as &paged to pass validation.

    To fix this issue, enclose calls to “get_pagenum_link” in the wp-pagenavi.php file of the plugin with htmlspecialchars().

    For example:

    echo '<a href="'.get_pagenum_link($i).'" title="'.$page_text.'" class="page-link">'.$page_text.'</a>';

    becomes

    echo '<a href="'.htmlspecialchars(get_pagenum_link($i)).'" title="'.$page_text.'" class="page-link">'.$page_text.'</a>';
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WP-PageNavi Breaks Validation’ is closed to new replies.