[wp-trac] [WordPress Trac] #44983: REST API: Undefined-property notice when setting term parent to 0
WordPress Trac
noreply at wordpress.org
Thu Mar 21 18:58:56 UTC 2019
#44983: REST API: Undefined-property notice when setting term parent to 0
--------------------------------------+-----------------------------
Reporter: dlh | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.2
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------------
Changes (by kadamwhite):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"44965" 44965]:
{{{
#!CommitTicketReference repository="" revision="44965"
REST API: Avoid undefined-property notice when setting parent term to 0.
Only try to access `term_id` once `$parent_term` is known to be a
`WP_Term`.
Props dlh, earnjam.
Fixes #44983.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44983#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list