[wp-trac] [WordPress Trac] #18196: Post Meta API Cleanup

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 2 20:51:51 UTC 2011


#18196: Post Meta API Cleanup
--------------------------+--------------------
 Reporter:  ryan          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.3
Component:  General       |     Version:  3.2.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by ryan):

 WPTestPostMeta and WPTestIncludesMeta unit tests pass except for
 test_delete_post_meta_by_key().  delete_post_meta_by_key() is failing.
 This is due to a bug in update_metadata() where the cache is not cleared
 for all posts when doing $delete_all.  It needs to fetch all object IDs
 and do a wp_cache_delete() for each similar to what
 delete_post_meta_by_key() did.

 http://unit-tests.trac.wordpress.org/browser/wp-
 testcase/test_includes_post.php
 http://unit-tests.trac.wordpress.org/browser/wp-
 testcase/test_includes_meta.php

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


More information about the wp-trac mailing list