[wp-trac] [WordPress Trac] #37251: Not return 404 on front-page with option page and url `/page/2`
WordPress Trac
noreply at wordpress.org
Sun May 28 15:33:44 UTC 2023
#37251: Not return 404 on front-page with option page and url `/page/2`
--------------------------+------------------------------
Reporter: sheo13666q | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 4.5.3
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by Presskopp):
The relevant code is to find in {{{class-wp-query.php}}}, no more in
{{{query.php}}}.
If we add {{{!$this->is_paged}}} it will work out well for a non paged
homepage. But no more for a paged one. Also the block editor doesn't use
{{{<!--nextpage-->}}} but has it's own breaking page block which creates
something like
{{{
<!-- wp:nextpage -->
<p><!--nextpage--></p>
<!-- /wp:nextpage -->
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37251#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list