Make WordPress Core

Opened 5 years ago

Closed 5 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:

Description

There is a mistake in wp_insert_term inline docs:
The error is located here: https://core.trac.wordpress.org/browser/tags/5.4/src/wp-includes/taxonomy.php#L2103

"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 5 years ago.
Fix inline docs

Download all attachments as: .zip

Change History (4)

@audrasjb
5 years ago

Fix inline docs

#1 @audrasjb
5 years ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
5 years ago

  • Milestone changed from Awaiting Review to 5.5

#3 @SergeyBiryukov
5 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.