PluginProbe
Polylang / 2.0.12
Polylang v2.0.12
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | include/links-permalinks.php +4 -4 2.72.0.12 View file →
@@ -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 }