[wp-trac] [WordPress Trac] #19373: wp_insert_post() should not contain current_user_can() checks
WordPress Trac
noreply at wordpress.org
Wed Sep 25 03:12:02 UTC 2013
#19373: wp_insert_post() should not contain current_user_can() checks
---------------------------------+------------------
Reporter: alexkingorg | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.7
Component: Taxonomy | Version: 3.0
Severity: major | Resolution:
Keywords: has-patch 3.7-early |
---------------------------------+------------------
Comment (by nacin):
Replying to [comment:34 MikeSchinkel]:
> Replying to [comment:32 nacin]:
> > [attachment:19373.diff] is what I'm proposing.
>
> Does an explicit `$sanitize` parameter make sense, or instead an `$args`
parameter so that future unforeseen needs don't require adding yet another
position parameter?
Because it is a bool, we can always convert it to $args later. We *could*
convert $wp_error to an array of args now.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19373#comment:35>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list