WP 4.4.1 Loop Redirect when Page set as Homepage

remove_filter( 'template_redirect', 'redirect_canonical' );
If you select a page as Homepage (Settings > Reading), WP 4.4.2 fail with infinite loop. This snippet stop the redirect and show the page.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.