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

WordPress Trac noreply at wordpress.org
Wed Aug 28 20:26:09 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 SergeyBiryukov):

 Introduced in [24790].

 The `save_post` call on initial page load after the update is caused by
 `_wp_upgrade_revisions_of_post()`:
 [source:tags/3.6/wp-admin/edit-form-advanced.php#L117]

 It would have a difference in most cases, but the example script here does
 not check if `$_POST['bug']` is set, and resets it to an empty value.

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


More information about the wp-trac mailing list