[wp-trac] [WordPress Trac] #18833: Pass raw data into save_post/wp_insert_post
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 2 01:53:58 UTC 2011
#18833: Pass raw data into save_post/wp_insert_post
----------------------------+------------------------------
Reporter: rmccue | Owner: rmccue
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------------------
Comment (by rmccue):
Replying to [comment:7 sirzooro]:
> The same is for radio buttons and selection lists, when nothing is
selected.
Those should still just be equivalent to `$_POST['something'] = '';` (i.e.
empty value, but still set). I'm not sure for checkboxes, however.
Replying to [comment:9 dd32]:
> My only thoughts on this is that this ties us to passing the complete
$_POST array in as $postarr. If passing $_POST in is a shortcut, I'd
personally prefer not to go down this road, of course, if it already
relies upon ($postarr === $_POST) that might be a different case.
It is already passed in, as this is where `wp_insert_post` gets the actual
data from. The only change (as noted in the patch) is to add it to the two
actions.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18833#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list