[wp-trac] [WordPress Trac] #23378: wp_(insert|update)_term() should accept term slug as 'parent' argument
WordPress Trac
noreply at wordpress.org
Sun Feb 10 06:56:17 UTC 2013
#23378: wp_(insert|update)_term() should accept term slug as 'parent' argument
-----------------------------+------------------------------
Reporter: danielbachhuber | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------------+------------------------------
Comment (by nacin):
In general: we treat an integer as an ID, and a numeric string as a slug.
While that could work here, adding this behavior to a function after the
fact can result in compatibility issues.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23378#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list