Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#43268 closed defect (bug) (fixed)

Typo in the docs of term_exists() — at Version 7

Reported by: swissspidy's profile swissspidy Owned by: danieltj's profile danieltj
Milestone: 5.1 Priority: low
Severity: normal Version:
Component: Taxonomy Keywords: good-first-bug has-patch
Focuses: docs Cc:

Description (last modified by swissspidy)

The @return part for term_exists() currently reads:

Returns null if the term does not exist. Returns the term ID if no taxonomy is specified and the term ID exists. Returns an array of the term ID and the term taxonomy ID the taxonomy is specified and the pairing exists.

I think in the last sentence an "if" is missing:

[…] and the term taxonomy ID if the taxonomy is specified and the pairing exists.

Change History (9)

@milana_cap
6 years ago

#1 @milana_cap
6 years ago

  • Keywords has-patch added; needs-patch removed

Actually, it was in docs for term_exists().

@danieltj
6 years ago

Added 'if' to the docs.

#2 @danieltj
6 years ago

Hah, yep it was for another function instead, took me a while to find it too. Never mind.

#3 @SergeyBiryukov
6 years ago

  • Milestone changed from Awaiting Review to 5.0

#4 @swissspidy
6 years ago

  • Description modified (diff)
  • Summary changed from Typo in the docs of wp_insert_term() to Typo in the docs of wp_term_exists()

Whoops, sorry folks! Copy paste mistake,

#5 @DrewAPicture
6 years ago

  • Owner set to danieltj
  • Status changed from new to assigned

Assigning to mark the good-first-bug as "claimed."

#6 @SergeyBiryukov
6 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 42699:

Docs: Fix typo in term_exists() DocBlock.

Props milana_cap, danieltj.
Fixes #43268.

#7 @swissspidy
6 years ago

  • Description modified (diff)
  • Summary changed from Typo in the docs of wp_term_exists() to Typo in the docs of term_exists()
Note: See TracTickets for help on using tickets.