PluginProbe
Polylang / 2.6.3
Polylang v2.6.3
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/filters-links.php +4 -5 2.7.42.6.3 View file →
@@ -21,9 +21,9 @@
21 21 $this->model = &$polylang->model;
22 22 $this->options = &$polylang->options;
23 23 $this->curlang = &$polylang->curlang;
24 24
25 - // Low priority on links filters to come after any other modifications.
25 + // Low priority on links filters to come after any other modifications
26 26 if ( $this->options['force_lang'] ) {
27 27 add_filter( 'post_link', array( $this, 'post_type_link' ), 20, 2 );
28 28 add_filter( '_get_page_link', array( $this, '_get_page_link' ), 20, 2 );
29 29 }
@@ -34,14 +34,13 @@
34 34 if ( $this->options['force_lang'] > 0 ) {
35 35 add_filter( 'attachment_link', array( $this, 'attachment_link' ), 20, 2 );
36 36 }
37 37
38 - // Keeps the preview post link on default domain when using multiple domains and SSO is not available.
39 - if ( 3 === $this->options['force_lang'] && ! class_exists( 'PLL_Xdata_Domain' ) ) {
38 + if ( 3 === $this->options['force_lang'] ) {
40 39 add_filter( 'preview_post_link', array( $this, 'preview_post_link' ), 20 );
41 40 }
42 41
43 - // Rewrites post types archives links to filter them by language.
42 + // Rewrites post types archives links to filter them by language
44 43 add_filter( 'post_type_archive_link', array( $this, 'post_type_archive_link' ), 20, 2 );
45 44 }
46 45
47 46 /**
@@ -136,9 +135,9 @@
136 135 return $link;
137 136 }
138 137
139 138 /**
140 - * Keeps the preview post link on default domain when using multiple domains
139 + * FIXME: keeps the preview post link on default domain when using multiple domains
141 140 *
142 141 * @since 1.6.1
143 142 *
144 143 * @param string $url