Permalink
Browse files

Fix stray '\' in Loop Pagination: #18

  • Loading branch information...
1 parent 7dcffc5 commit d3bc8b724a097a86ae92991768ab3a049e126a86 @justintadlock committed Jan 24, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 extensions/loop-pagination.php
@@ -14,7 +14,7 @@
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* @package LoopPagination
- * @version 0.2
+ * @version 0.2.1
* @author Justin Tadlock <justin@justintadlock.com>
* @copyright Copyright (c) 2010 - 2012, Justin Tadlock
* @link http://themehybrid.com/docs/tutorials/loop-pagination
@@ -96,7 +96,7 @@ function loop_pagination( $args = array() ) {
/* Remove 'page/1' from the entire output since it's not needed. */
$page_links = str_replace( array( "?paged=1'", "&#038;paged=1'", "/{$pagination_base}/1'", "/{$pagination_base}/1/'" ), '\'', $page_links );
- $page_links = str_replace( array( '?paged=1"', '&#038;paged=1"', "/{$pagination_base}/1\"", "/{$pagination_base}/1/\"" ), '\"', $page_links );
+ $page_links = str_replace( array( '?paged=1"', '&#038;paged=1"', "/{$pagination_base}/1\"", "/{$pagination_base}/1/\"" ), '"', $page_links );
/* Wrap the paginated links with the $before and $after elements. */
$page_links = $args['before'] . $page_links . $args['after'];

0 comments on commit d3bc8b7

Please sign in to comment.