[wp-trac] [WordPress Trac] #35455: The problem with navigation on the home page
WordPress Trac
noreply at wordpress.org
Thu Jan 14 11:25:32 UTC 2016
#35455: The problem with navigation on the home page
--------------------------+-----------------------------
Reporter: Cawa-93 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 4.4.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The error occurs if I as a home page set a static page. And on this page
is an arbitrary selection of posts and pagination.
If you try to go to the next page navigation triggered redirection to
home.
I think the problem here:
{{{/wp-includes/canonical.php:175-176}}}
I propose to add a check for page navigation options:
{{{#!php
<?php
... elseif ( is_page() && !is_feed() && isset($wp_query->queried_object)
&& 'page' == get_option('show_on_front') && $wp_query->queried_object->ID
== get_option('page_on_front') && empty($wp_query->query['paged']) && !
$redirect_url ) {
$redirect_url = home_url('/');
} elseif ...
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35455>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list