[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 02:05:41 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 dd32):
> 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.
Yes, However nothing but the core post fields are used from the array.
Passing it to functions like this will introduce a reliance upon having to
(forever) pass the complete $_POST array in. Right now for example, it is
entirely possible to only pass select fields in (although we don't).
Where this comes up, is from #18322, As part of switching from the slashed
to unslashed globals, certain functions which expect slashed data will
need some special handling. One suggestion which I have seen floating
around (which I personally prefer) would result in only passing select
elements through functions like this. I'm thinking of the future use of
the functions, not just what's easiest today.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18833#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list