Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#29278 closed defect (bug) (fixed)

wp_update_term does not update the term_group value for the term

Reported by: djm1119 Owned by: wonderboymusic
Priority: normal Milestone: 4.0
Component: Taxonomy Version: 4.0
Severity: normal Keywords:
Cc: Focuses:

Description

A call to wp_update_term does not update the term_group of the term. Have confirmed that no error was raised and that other values have been updated correctly.

From close inspection, have found that the issue stems from ticket #22400 whereby the extract function call was removed.

Attachments (1)

ticket29278.patch (1.5 KB ) - added by djm1119 12 years ago.

Download all attachments as: .zip

Change History (5)

#1 @wonderboymusic
12 years ago

  • Milestone Awaiting Review4.0

I will look

#2 follow-up: @wonderboymusic
12 years ago

  • Owner set to wonderboymusic
  • Resolutionfixed
  • Status newclosed

In 29549:

wp_update_term() should mimic wp_insert_term() and set a value for $term_group before the alias_of logic runs. This ensures that $term_group exists when compact() is called.

See [28461].
Fixes #29278.

#3 in reply to: ↑ 2 ; follow-up: @djm1119
12 years ago

Ah ok, I didn't see that one. So that will make it into version 4?

#4 in reply to: ↑ 3 @johnbillion
12 years ago

Replying to djm1119:

So that will make it into version 4?

Yep!

Note: See TracTickets for help on using tickets.