Skip to content

Commit

Permalink
Fix infinite scroll paged URL (#4953)
Browse files Browse the repository at this point in the history
URL can be translated now for multilingual sites. Used get_home_url()
instead, since it is filtered natively. URL is also escaped now.
  • Loading branch information
vukvukovich authored and samhotchkiss committed Nov 9, 2016
1 parent e0191de commit 7e5eddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/infinite-scroll/infinity.php
Expand Up @@ -768,7 +768,7 @@ function action_wp_footer_settings() {
'google_analytics' => false,
'offset' => self::wp_query()->get( 'paged' ),
'history' => array(
'host' => preg_replace( '#^http(s)?://#i', '', untrailingslashit( get_option( 'home' ) ) ),
'host' => preg_replace( '#^http(s)?://#i', '', untrailingslashit( esc_url( get_home_url() ) ) ),
'path' => self::get_request_path(),
'use_trailing_slashes' => $wp_rewrite->use_trailing_slashes,
'parameters' => self::get_request_parameters(),
Expand Down

0 comments on commit 7e5eddc

Please sign in to comment.