[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:34:08 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         |
------------------------------+---------------------

Comment (by ryan):

 I had to move the invalid ID checks earlier in the functions to avoid
 things such as wp_slash() stomping the null response of get_post(). Please
 double check.

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


More information about the wp-trac mailing list