[wp-trac] [WordPress Trac] #25023: WordPress 3.6 deleting data on custom post meta

WordPress Trac noreply at wordpress.org
Wed Aug 28 20:18:12 UTC 2013


#25023: WordPress 3.6 deleting data on custom post meta
----------------------------+--------------------
 Reporter:  cdwharton       |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.6.1
Component:  Administration  |     Version:  3.6
 Severity:  critical        |  Resolution:
 Keywords:                  |
----------------------------+--------------------

Comment (by jeremyfelt):

 From reporter's code:

 {{{
 if( isset( $post->ID ) ) {
         update_post_meta($post->ID, "page_summary",
 $_POST["page_summary"]);
 }
 }}}

 The meta value is destroyed here because `$_POST["page_summary"]` is empty
 when `save_post` fires in this scenario.

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


More information about the wp-trac mailing list