[wp-trac] [WordPress Trac] #54835: Docs: Update comments for the post_meta functions

WordPress Trac noreply at wordpress.org
Tue Feb 1 17:11:03 UTC 2022


#54835: Docs: Update comments for the post_meta functions
--------------------------------+----------------------------
 Reporter:  thelovekesh         |       Owner:  davidbaumwald
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:  6.0
Component:  Options, Meta APIs  |     Version:  5.9
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:  docs
--------------------------------+----------------------------
Changes (by davidbaumwald):

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


Comment:

 In [changeset:"52660" 52660]:
 {{{
 #!CommitTicketReference repository="" revision="52660"
 Options, Meta APIs: Correct some inline docs for `update_post_meta` and
 `delete_post_meta`.

 In `update_post_meta` and `delete_post_meta`, code was added to fetch the
 parent post if these functions were called for a revision post ID.  In
 [9252], the code was apparently copied from `add_post_meta`, and the
 inline comment describing the new block of code was not updated to mention
 either "updated" or "deleted" respectively.  This change corrects the
 comment in both functions to reflect the current action instead of
 "added".

 Props thelovekesh, rehanali.
 Fixes #54835.
 }}}

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


More information about the wp-trac mailing list