[wp-trac] [WordPress Trac] #54973: Failed wp_insert_category() when IMPORT_DEBUG is set to true produces a fatal error.

WordPress Trac noreply at wordpress.org
Fri Jan 28 13:22:49 UTC 2022


#54973: Failed wp_insert_category() when IMPORT_DEBUG is set to true produces a
fatal error.
--------------------------+------------------------------
 Reporter:  enshrined     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Import        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by enshrined):

 * keywords:  needs-patch => has-patch


Comment:

 Added a patch that does a `is_wp_error()` check before trying to access
 the `get_error_message()` method on it.

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


More information about the wp-trac mailing list