[wp-trac] [WordPress Trac] #39679: Redirect loop on attachment pages
WordPress Trac
noreply at wordpress.org
Mon Sep 3 15:48:54 UTC 2018
#39679: Redirect loop on attachment pages
--------------------------+------------------------------
Reporter: OPunWide | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.7.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by niceguyit):
This seems to be the same issue as ticket #21602. The STR are listed in
[[comment:5:ticket:21602| comment 5]]. I'm using the Enigma theme which
triggers the bug by calling `is_front_page()`.
For me, the solution was to make the `home_url('/')` lowercase to match
`$_SERVER['HTTP_HOST']`. YMMV
Line 177: wp-includes/canonical.php
{{{#!php
} elseif ( is_page() && !is_feed() && 'page' ==
get_option('show_on_front') && get_queried_object_id() ==
get_option('page_on_front') && ! $redirect_url ) {
$redirect_url = strtolower(home_url('/'));
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39679#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list