[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
Wed Jan 6 02:01:37 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: 4.5
Component: Taxonomy | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------
Changes (by dd32):
* milestone: Awaiting Review => 4.5
Comment:
Passing `NULL` really is an odd thing here IMHO, however, as this
previously worked I see no harm in casting it.
The other option would be something like this instead:
{{{
if ( ! $args['description'] ) {
$args['description'] = '';
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35321#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list