| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | * @since 1.6 |
| 7 | 7 | */ |
| 8 | 8 | abstract class PLL_Links_Permalinks extends PLL_Links_Model { |
| 9 | 9 | public $using_permalinks = true; |
| 10 | - protected $index = 'index.php'; // Need this before $wp_rewrite is created, also hardcoded in wp-includes/rewrite.php | |
| 10 | + protected $index = 'index.php'; // Need this before $wp_rewrite is created, also harcoded in wp-includes/rewrite.php | |
| 11 | 11 | protected $root, $use_trailing_slashes; |
| 12 | 12 | protected $always_rewrite = array( 'date', 'root', 'comments', 'search', 'author' ); |
| 13 | 13 | |
| 14 | 14 | /** |
| @@ -41,11 +41,11 @@ | ||
| 41 | 41 | * |
| 42 | 42 | * @since 2.0.6 |
| 43 | 43 | * |
| 44 | 44 | * @param string $modified_url The link to the first page |
| 45 | - * @param string $original_url The link to the original paged page | |
| 45 | + * @param string $orginal_url The link to the original paged page | |
| 46 | 46 | */ |
| 47 | - return apply_filters( 'pll_remove_paged_from_link', preg_replace( '#/page/[0-9]+/?#', $this->use_trailing_slashes ? '/' : '', $url ), $url ); | |
| 47 | + return apply_filters( 'pll_remove_paged_from_link', preg_replace( '#\/page\/[0-9]+\/?#', $this->use_trailing_slashes ? '/' : '', $url ), $url ); | |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * Returns the link to the paged page when using pretty permalinks |
| @@ -62,9 +62,9 @@ | ||
| 62 | 62 | * |
| 63 | 63 | * @since 2.0.6 |
| 64 | 64 | * |
| 65 | 65 | * @param string $modified_url The link to the paged page |
| 66 | - * @param string $original_url The link to the original first page | |
| 66 | + * @param string $orginal_url The link to the original first page | |
| 67 | 67 | * @param int $page The page number |
| 68 | 68 | */ |
| 69 | 69 | return apply_filters( 'pll_add_paged_to_link', user_trailingslashit( trailingslashit( $url ) . 'page/' . $page, 'paged' ), $url, $page ); |
| 70 | 70 | } |