#6976 closed defect (bug) (duplicate)
Warning from uninitalized index args in taxonomy.php wp_get_object_terms
| Reported by: | minddog | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.5.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
To reproduce the issue, turn on debug mode and do a base installation of wordpress. To resolve this issue of only using args property of a taxonomy object is to check to see if $taxonomy->args has been set before using. The patch attached adds an isset() to the start of an if-statement to let the operation continue and to remove the warning from happening.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This is the PHP notice, line #'s may differ:
Notice: Undefined property: stdClass::$args in <removed>/wp-includes/taxonomy.php on line 1061