[wp-trac] [WordPress Trac] #39317: Trying to get property of non-object wp_terms_checklist
WordPress Trac
noreply at wordpress.org
Fri Dec 23 02:28:11 UTC 2016
#39317: Trying to get property of non-object wp_terms_checklist
-------------------------------+-----------------------------
Reporter: jevuska | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version: 4.7
Severity: normal | Resolution: invalid
Keywords: reporter-feedback | Focuses: administration
-------------------------------+-----------------------------
Changes (by boonebgorges):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
@jevuska Thanks for the clarification. On closer examination, it appears
that you're using `descendants_and_self` incorrectly. This parameter
expects a term ID, not a boolean. If you pass it `53`, it'll return term
53 and all descendants. `true` gets cast to `1`, and you're probably
seeing the notice because you're getting a `WP_Error` or some other weird
response back (maybe because you deleted term `1`).
See https://core.trac.wordpress.org/browser/tags/4.7/src/wp-
admin/includes/template.php?marks=63-64#L50 for more info on the
parameter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39317#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list