[wp-trac] [WordPress Trac] #50277: get_category_by_slug() lacked bool return type

WordPress Trac noreply at wordpress.org
Fri May 29 04:07:16 UTC 2020


#50277: get_category_by_slug() lacked bool return type
--------------------------+-----------------------------
 Reporter:  stevenlinx    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:
 Severity:  normal        |   Keywords:  needs-docs
  Focuses:  docs          |
--------------------------+-----------------------------
 The return type should be either object or bool.

 get_category_by_slug() | Codex:
 https://codex.wordpress.org/Function_Reference/get_category_by_slug

 get_category_by_slug() | DevHub:
 https://developer.wordpress.org/reference/functions/get_category_by_slug/

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50277>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list