[wp-trac] [WordPress Trac] #51376: wp_get_shortlink produces PHP Notice on unregistered post type
WordPress Trac
noreply at wordpress.org
Mon Sep 28 11:52:16 UTC 2020
#51376: wp_get_shortlink produces PHP Notice on unregistered post type
-------------------------------+-----------------------------
Reporter: apedog | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.6
Component: Posts, Post Types | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"49067" 49067]:
{{{
#!CommitTicketReference repository="" revision="49067"
Posts, Post Types: Avoid a PHP notice in `wp_get_shortlink()` if the post
type is no longer registered.
Props apedog.
Fixes #51376.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51376#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list