[wp-trac] [WordPress Trac] #51797: Clarify return results for a non-existing ID in metadata functions

WordPress Trac noreply at wordpress.org
Fri Apr 2 15:47:49 UTC 2021


#51797: Clarify return results for a non-existing ID in metadata functions
--------------------------------+----------------------------
 Reporter:  SergeyBiryukov      |       Owner:  davidbaumwald
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  5.8
Component:  Options, Meta APIs  |     Version:  5.5
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch commit    |     Focuses:  docs
--------------------------------+----------------------------
Changes (by davidbaumwald):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50641" 50641]:
 {{{
 #!CommitTicketReference repository="" revision="50641"
 Docs: Clarify return results for a non-existing ID in metadata functions.

 [48658] documented that various metadata functions return false for an
 invalid ID. However, that does not clarify what an invalid ID is: a non-
 numeric, zero, or negative value. This change adds the clarification in
 all relevant metadata function docblocks.

 Props icopydoc, SergeyBiryukov, davidkryzaniak, audrasjb.
 Fixes #51797.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51797#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list