[wp-trac] [WordPress Trac] #23474: wp_update_post returns incorrect WP_Error on invalid ID (if $wp_error is set)

WordPress Trac noreply at wordpress.org
Mon Mar 18 14:33:11 UTC 2013


#23474: wp_update_post returns incorrect WP_Error on invalid ID (if $wp_error is
set)
------------------------------+---------------------
 Reporter:  simonwheatley     |       Owner:  ryan
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.6
Component:  Warnings/Notices  |     Version:  3.5
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |
------------------------------+---------------------
Changes (by ryan):

 * owner:   => ryan
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"23740"]:
 {{{
 #!CommitTicketReference repository="" revision="23740"
 Bail early with correct WP_Error when an invalid post ID is passed to
 wp_insert_post() and wp_update_post().

 Props simonwheatley
 fixes #23474
 }}}

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


More information about the wp-trac mailing list