[wp-trac] [WordPress Trac] #24554: Errors in post.php seems silent.

WordPress Trac noreply at wordpress.org
Thu Jun 27 15:31:05 UTC 2013


#24554: Errors in post.php seems silent.
-------------------------------+------------------------------
 Reporter:  nilo85             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => reporter-feedback


Comment:

 In that condition, `wp_insert_post()` returns either a `WP_Error` object
 or 0 to the function where it was called: [source:tags/3.5.2/wp-
 includes/post.php#L2930]. This consistent with how other errors are
 handled in the function.

 Could you provide the steps to reproduce the issue? If you call
 `wp_insert_post()` manually,  could you share the code you're using?

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


More information about the wp-trac mailing list