[wp-trac] [WordPress Trac] #16673: _wp_translate_data() shouldn't set fields to empty values
WordPress Trac
wp-trac at lists.automattic.com
Sat Feb 26 01:52:20 UTC 2011
#16673: _wp_translate_data() shouldn't set fields to empty values
----------------------------+----------------------------
Reporter: scribu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Administration | Version:
Severity: normal | Keywords: has-patch
----------------------------+----------------------------
In _wp_translate_data(), there are 3 fields which are always set,
regardless if their $_POST key wasn't set originally.
This prevents the [https://core.trac.wordpress.org/browser/trunk/wp-
includes/post.php#L2667 array_merge() in wp_update_post()] from working
properly.
Example: If a custom post type doesn't support excerpts, they will be
overwritten if you set them through another method.
In #13179, this was resolved by adding hidden inputs, which is kind of
backwards.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16673>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list