WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#50753 closed defect (bug) (fixed)

Docs: mistake in wp_insert_term inline documentation

Reported by: audrasjb Owned by: 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 3 months ago.
Fix inline docs

Download all attachments as: .zip

Change History (4)

@audrasjb
3 months ago

Fix inline docs

#1 @audrasjb
3 months ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
3 months ago

  • Milestone changed from Awaiting Review to 5.5

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