WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#6960 closed defect (bug) (fixed)

wp_get_object_terms() always raises E_NOTICE

Reported by: blueyez Owned by: Sam_a
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.5.1
Component: General Keywords: taxonomy wp_get_object_terms has-patch tested
Focuses: 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 (1)

6960.patch (826 bytes) - added by Sam_a 6 years ago.
Checks if $taxonomy->args property is set

Download all attachments as: .zip

Change History (7)

Sam_a6 years ago

Checks if $taxonomy->args property is set

comment:1 Sam_a6 years ago

  • Keywords wp_get_object_terms has-patch needs-testing added

comment:2 Sam_a6 years ago

  • Keywords tested added; needs-testing removed
  • 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.

comment:3 ryan6 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

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

comment:4 ryan6 years ago

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

comment:5 ryan6 years ago

  • Milestone changed from 2.5.2 to 2.9

Milestone 2.5.2 deleted

comment:6 westi6 years ago

  • Milestone changed from 2.9 to 2.6
Note: See TracTickets for help on using tickets.