[wp-trac] [WordPress Trac] #58345: Critical error if page_for_posts is set to non existing page ID
WordPress Trac
noreply at wordpress.org
Thu Jun 22 05:11:51 UTC 2023
#58345: Critical error if page_for_posts is set to non existing page ID
----------------------------+---------------------
Reporter: wplindavantol | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: Menus | Version: trunk
Severity: normal | Resolution:
Keywords: php8 has-patch | Focuses:
----------------------------+---------------------
Comment (by audrasjb):
Thanks for the patch @hbhalodia however there's a logic issue in the PR:
if `$front_page_obj` or `$posts_page_obj` is null we should fallback to
the `else` statement.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58345#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list