[wp-trac] [WordPress Trac] #10744: autosaves deletes content for hidden meta_fields on custom widgets/plugins

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 7 19:47:36 UTC 2009


#10744: autosaves deletes content for hidden meta_fields on custom widgets/plugins
-----------------------------+----------------------------------------------
 Reporter:  hertzel          |       Owner:  azaozz
     Type:  defect (bug)     |      Status:  new   
 Priority:  highest omg bbq  |   Milestone:  2.8.5 
Component:  Autosave         |     Version:        
 Severity:  major            |    Keywords:        
-----------------------------+----------------------------------------------
 Steps to reproduce.

 1. create a new hidden meta field
 add_post_meta($post_id, "_hidden", "under the table", true)     or
 update_post_meta($post_id, $idx_item_name, $name);
 2. Create a regular meta field
 add_post_meta($post_id, "Survive", "HI Im alive",true) or
 update_post_meta($post_di, "Survive", "HI Im alive");

 using hook save_post
 they save and be retrieved just fine but after the first call to autosave,
 _hidden will be be saved with "" instead of the value passed to the hook
 function

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10744>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list