[wp-trac] [WordPress Trac] #36529: Bug in get_permalink()
WordPress Trac
noreply at wordpress.org
Thu Apr 14 20:38:17 UTC 2016
#36529: Bug in get_permalink()
----------------------------------------+------------------
Reporter: dav4 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.6
Component: General | Version: 4.5
Severity: normal | Resolution:
Keywords: good-first-bug needs-patch | Focuses:
----------------------------------------+------------------
Changes (by SergeyBiryukov):
* keywords: => good-first-bug needs-patch
* milestone: Awaiting Review => 4.6
Comment:
Hi @dav4, welcome to Trac! Thanks for the ticket, I was able to confirm
the issue.
`get_term()` can return a `WP_Error` object or `null` on error, but we
only account for `WP_Error`.
We should account for `null` as well. Would you like to create a patch?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36529#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list