[wp-trac] [WordPress Trac] #19373: wp_insert_post() should not contain current_user_can() checks

WordPress Trac noreply at wordpress.org
Wed Sep 25 15:32:50 UTC 2013


#19373: wp_insert_post() should not contain current_user_can() checks
---------------------------------+-----------------------------
 Reporter:  alexkingorg          |       Owner:
     Type:  enhancement          |      Status:  new
 Priority:  normal               |   Milestone:  Future Release
Component:  Taxonomy             |     Version:  3.0
 Severity:  major                |  Resolution:
 Keywords:  has-patch 3.8-early  |
---------------------------------+-----------------------------

Comment (by MikeSchinkel):

 Replying to [comment:35 nacin]:
 > Because it is a bool, we can always convert it to `$args` later.

 Good point.

 > We *could* convert `$wp_error` to an array of args now.

 Yes. That's a much better choice.

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


More information about the wp-trac mailing list