PluginProbe
Polylang / 2.5.2
Polylang v2.5.2
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 | modules/plugins/jetpack.php +2 -2 2.7.22.5.2 View file →
@@ -18,9 +18,9 @@
18 18 add_filter( 'jetpack_open_graph_tags', array( $this, 'jetpack_ogp' ) );
19 19 add_filter( 'jetpack_relatedposts_filter_filters', array( $this, 'jetpack_relatedposts_filter_filters' ), 10, 2 );
20 20
21 21 // Jetpack infinite scroll
22 - if ( isset( $_GET['infinity'], $_POST['action'] ) && 'infinite_scroll' == $_POST['action'] ) { // phpcs:ignore WordPress.Security.NonceVerification
22 + if ( isset( $_GET['infinity'], $_POST['action'] ) && 'infinite_scroll' == $_POST['action'] ) {
23 23 add_filter( 'pll_is_ajax_on_front', '__return_true' );
24 24 }
25 25 }
26 26
@@ -130,8 +130,8 @@
130 130 * @param array $settings
131 131 * @return array
132 132 */
133 133 public function jetpack_infinite_scroll_js_settings( $settings ) {
134 - $settings['history']['host'] = wp_parse_url( pll_home_url(), PHP_URL_HOST ); // Jetpack uses get_option( 'home' )
134 + $settings['history']['host'] = parse_url( pll_home_url(), PHP_URL_HOST ); // Jetpack uses get_option( 'home' )
135 135 return $settings;
136 136 }
137 137 }