[wp-trac] [WordPress Trac] #25852: Saving term broken. If no term parent is set - sets to term ID 1.
WordPress Trac
noreply at wordpress.org
Wed Nov 6 23:40:14 UTC 2013
#25852: Saving term broken. If no term parent is set - sets to term ID 1.
--------------------------+--------------------
Reporter: mattheu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.8
Component: Taxonomy | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Comment (by SergeyBiryukov):
[attachment:25852-2.diff] would not work as expected, since `$value` is
already changed to 1 in line 1714. The check should also be inside the
`in_array()` condition, not after it.
[attachment:25852.3.diff] reverts that part of [26010] and adds a basic
unit test.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25852#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list