Ticket #6976 (closed defect: duplicate)

Opened 6 months ago

Last modified 5 months ago

Warning from uninitalized index args in taxonomy.php wp_get_object_terms

Reported by: minddog Assigned to: anonymous
Priority: normal Milestone: 2.6
Component: General Version: 2.5.1
Severity: normal Keywords:
Cc:

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

6976_fix.patch (0.6 kB) - added by minddog on 05/15/08 17:19:58.

Change History

05/15/08 17:19:58 changed by minddog

  • attachment 6976_fix.patch added.

05/15/08 17:22:39 changed by minddog

This is the PHP notice, line #'s may differ: Notice: Undefined property: stdClass::$args in <removed>/wp-includes/taxonomy.php on line 1061

07/07/08 18:56:28 changed by kaspars404

  • status changed from new to closed.
  • resolution set to duplicate.

Duplicate of ticket:6960