[wp-trac] [WordPress Trac] #29899: wp_insert_term should return an object instead of an array
WordPress Trac
noreply at wordpress.org
Fri Oct 10 05:28:07 UTC 2014
#29899: wp_insert_term should return an object instead of an array
-------------------------+----------------------
Reporter: andyexeter | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version: 2.3
Severity: normal | Resolution: wontfix
Keywords: | Focuses:
-------------------------+----------------------
Changes (by pento):
* status: new => closed
* version: 4.0 => 2.3
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
Thanks for the bug report!
I understand where you're coming from, but I don't think this is a viable
change. Naturally, we can't change the default behaviour, so the only
other option is add an extra `$output` parameter. Plugins wanting to use
this new parameter would still need to maintain backwards compatibility
for old versions of WordPress, which would increase their code complexity.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29899#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list