[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
Thu Jan 7 03:31:50 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: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.5
Component: Taxonomy | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"36214"]:
{{{
#!CommitTicketReference repository="" revision="36214"
Ensure 'description' is a string in `wp_insert_term()`.
Passing `'description' => null` when creating a term can cause MySQL
notices,
as the description column in the terms table does not allow for null
values.
We correct this by intepreting a `null` description as an empty string.
Props TimothyBlynJacobs.
Fixes #35321.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35321#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list