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

WordPress Trac noreply at wordpress.org
Sat Mar 15 06:06:43 UTC 2014


#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    |     Focuses:
-------------------------+-----------------------------

Comment (by nacin):

 In [changeset:"27556"]:
 {{{
 #!CommitTicketReference repository="" revision="27556"
 Explicitly assign menu term relationship rather than piggybacking on
 wp_insert_post() with the tax_input argument.

 That argument currently depends on user context (see #19373).

 Adds unit test for properly updating orphaned menu items.

 props danielbachhuber.
 fixes #27113.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/19373#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list