[wp-trac] [WordPress Trac] #35321: Inserting a term with a description of null results in the term being created, but not its relationship to a taxonomy

WordPress Trac noreply at wordpress.org
Tue Jan 5 22:15:43 UTC 2016


#35321: Inserting a term with a description of null results in the term being
created, but not its relationship to a taxonomy
--------------------------+------------------------------
 Reporter:  eclev91       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by TimothyBlynJacobs):

 I disagree that a WP_Error should be returned, it seems like passing
 `NULL` should be allowed and converted to an empty string. Though there
 should probably be some discussion on what happens to the newly created
 term if the subsequent term taxonomy insert fails.

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


More information about the wp-trac mailing list