[wp-trac] [WordPress Trac] #12414: delete_post_meta not working correctly when used with save_post

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 28 07:43:39 UTC 2010


#12414: delete_post_meta not working correctly when used with save_post
-------------------------------+--------------------------------------------
 Reporter:  studiograsshopper  |       Owner:                   
     Type:  defect (bug)       |      Status:  new              
 Priority:  normal             |   Milestone:  3.0              
Component:  Administration     |     Version:  3.0              
 Severity:  normal             |    Keywords:  reporter-feedback
-------------------------------+--------------------------------------------
Changes (by dd32):

  * keywords:  needs-patch => reporter-feedback
  * priority:  high => normal
  * component:  General => Administration
  * severity:  major => normal


Comment:

 This is working fine for me in a test run:

 {{{
 var_dump(get_post_meta(1, 'key') );
 array(0) { }

 var_dump(add_post_meta(1, 'key', 'value'));
 bool(true)

 var_dump(get_post_meta(1, 'key') );
 array(1) { [0]=> string(5) "value" }

 var_dump( delete_post_meta(1, 'key') );
 bool(true)

 var_dump(get_post_meta(1, 'key') );
 array(0) { }
 }}}

 Can you link to the plugin in question which results in the bug? If theres
 a bug, Its not due to the functions, rather something along the line where
 you're calling it.

 Resetting priority/severity until a problem is confirmed.

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


More information about the wp-trac mailing list