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

WordPress Trac noreply at wordpress.org
Sun Jul 28 23:26:24 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:  3.4-early has-patch  |
---------------------------------+-----------------------------

Comment (by alexkingorg):

 Updated patch attached, in the event that no post_author is passed in and
 there is no "current user" context, a WP_Error (or 0) is returned.

 Also, unit tests: http://core.trac.wordpress.org/changeset/1326/tests

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


More information about the wp-trac mailing list