[wp-trac] [WordPress Trac] #40309: Notice: in canonical.php line 122
WordPress Trac
noreply at wordpress.org
Sun Jan 3 17:55:03 UTC 2021
#40309: Notice: in canonical.php line 122
--------------------------+-----------------------------
Reporter: bobbingwide | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.7
Component: Canonical | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"49924" 49924]:
{{{
#!CommitTicketReference repository="" revision="49924"
Canonical: Check if the post type exists when attempting a canonical
redirect.
This avoids a PHP notice if the post type is no longer registered.
Follow-up to [14595], [35480].
Props bobbingwide, hareesh-pillai.
Fixes #40309.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40309#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list