Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#50753 closed defect (bug) (fixed)

Docs: mistake in wp_insert_term inline documentation

Reported by: audrasjb's profile audrasjb Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.5 Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: has-patch
Focuses: docs Cc:


There is a mistake in wp_insert_term inline docs:
The error is located here:

"The term name to add or update."

Given terms can only be added and not updated, we should say "The term name to add".

Props should be attributed to @bmartinent who spotted the issue.

Attachments (1)

50753.diff (598 bytes) - added by audrasjb 4 years ago.
Fix inline docs

Download all attachments as: .zip

Change History (4)

4 years ago

Fix inline docs

#1 @audrasjb
4 years ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
4 years ago

  • Milestone changed from Awaiting Review to 5.5

#3 @SergeyBiryukov
4 years ago

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

In 48600:

Docs: Correct documentation for wp_insert_term().

The function is used for adding a new term, not updating an existing one.

Props audrasjb, bmartinent.
Fixes #50753.

Note: See TracTickets for help on using tickets.