[buddypress-trac] [BuddyPress Trac] #5400: Implement add_meta() functions and other WP metadata goodies

buddypress-trac noreply at wordpress.org
Fri Feb 14 19:02:17 UTC 2014


#5400: Implement add_meta() functions and other WP metadata goodies
--------------------------+---------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  2.0
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+---------------------------

Comment (by boonebgorges):

 In [changeset:"7883"]:
 {{{
 #!CommitTicketReference repository="" revision="7883"
 Add delete_all support for all _delete_meta() functions

 The delete_all parameter allows you to delete all meta items matching the
 specified meta_key, regardless of the associated object.

 Because our meta delete functions also support the deletion of all
 metadata
 associated with an object (by leaving out the meta_key param), a decision
 had
 to be made regarding the behavior when _delete_meta() is called with
 delete_all
 = true and meta_key = false. The most logical (and least destructive)
 strategy
 was deemed to be: force delete_all to false when meta_key is also false.
 This
 ensures that you don't accidentally wipe out all metadata for a component.

 See #5400
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5400#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list