Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#29278 closed defect (bug) (fixed)

wp_update_term does not update the term_group value for the term

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

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 10 years ago.

Download all attachments as: .zip

Change History (5)

#1 @wonderboymusic
10 years ago

  • Milestone changed from Awaiting Review to 4.0

I will look

#2 follow-up: @wonderboymusic
10 years ago

  • Owner set to wonderboymusic
  • Resolution set to fixed
  • Status changed from new to closed

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
10 years ago

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

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

Replying to djm1119:

So that will make it into version 4?

Yep!

Note: See TracTickets for help on using tickets.