Ticket #6960 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

wp_get_object_terms() always raises E_NOTICE

Reported by: blueyez Assigned to: Sam_a
Priority: normal Milestone: 2.5.2
Component: General Version: 2.5.1
Severity: normal Keywords: taxonomy wp_get_object_terms has-patch tested
Cc:

Description

Notice: Undefined property: stdClass::$args in /home/ueyez/public_html/bl/wp-includes/taxonomy.php on line 1061

Notice: Undefined property: stdClass::$args in /home/ueyez/public_html/bl/wp-includes/taxonomy.php on line 1061

after fresh install running debug mode

Attachments

6960.patch (0.8 kB) - added by Sam_a on 05/14/08 16:33:42.
Checks if $taxonomy->args property is set

Change History

05/14/08 16:33:42 changed by Sam_a

  • attachment 6960.patch added.

Checks if $taxonomy->args property is set

05/14/08 16:36:25 changed by Sam_a

  • keywords changed from taxonomy to taxonomy wp_get_object_terms has-patch needs-testing.

05/19/08 17:53:20 changed by Sam_a

  • keywords changed from taxonomy wp_get_object_terms has-patch needs-testing to taxonomy wp_get_object_terms has-patch tested.
  • owner changed from anonymous to Sam_a.
  • status changed from new to assigned.
  • summary changed from taxonomy.php to wp_get_object_terms() always raises E_NOTICE.

Attached 6960.patch stops the error notices in version 2.5.1, and doesn't seem to break anything.

05/19/08 18:47:35 changed by ryan

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [7952]) Make sure taxonomy args are set before using. Props Sam_a. fixes #6960 for trunk

05/19/08 18:47:50 changed by ryan

(In [7953]) Make sure taxonomy args are set before using. Props Sam_a. fixes #6960 for 2.5