[wp-trac] [WordPress Trac] #18195: Introduce *_metadata_by_mid()

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 25 19:08:06 UTC 2011


#18195: Introduce *_metadata_by_mid()
--------------------------+--------------------
 Reporter:  ryan          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.3
Component:  General       |     Version:  3.2.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by ryan):

 mid2.patch looks good.  In order to replace existing uses of
 update_meta(), we may need to add an optional $meta_key argument to the
 end.  If present, the key is updated in addition to the value.

 Have a go at delete_metadata_by_mid() as well, if you're interested.

 Once we have both update and delete, update_meta() and delete_meta() can
 be updated to call the new by_mid functions.

 We also need to add test cases here: http://unit-
 tests.trac.wordpress.org/browser/wp-testcase/test_includes_meta.php

 And possibly add delete_meta() and update_meta() tests here: http://unit-
 tests.trac.wordpress.org/browser/wp-testcase/test_includes_post.php

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18195#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list