[wp-trac] [WordPress Trac] #50277: get_category_by_slug() lacked bool return type
WordPress Trac
noreply at wordpress.org
Fri May 29 10:00:47 UTC 2020
#50277: get_category_by_slug() lacked bool return type
--------------------------+-----------------------------
Reporter: stevenlinx | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
--------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"47863" 47863]:
{{{
#!CommitTicketReference repository="" revision="47863"
Docs: Document that `get_category_by_slug()` returns `false` if the
category doesn't exist.
Props stevenlinx.
Fixes #50277.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50277#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list