Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#43268 closed defect (bug) (fixed)

Typo in the docs of term_exists()

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.

Attachments (2)

43268.patch (771 bytes) - added by milana_cap 7 years ago.
43268.diff (755 bytes) - added by danieltj 7 years ago.
Added 'if' to the docs.

Download all attachments as: .zip

Change History (10)

@milana_cap
7 years ago

#1 @milana_cap
7 years ago

  • Keywords has-patch added; needs-patch removed

Actually, it was in docs for term_exists().

@danieltj
7 years ago

Added 'if' to the docs.

#2 @danieltj
7 years ago

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

#3 @SergeyBiryukov
7 years ago

  • Milestone changed from Awaiting Review to 5.0

#4 @swissspidy
7 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
7 years ago

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

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

#6 @SergeyBiryukov
7 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
7 years ago

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

#8 @johnbillion
6 years ago

  • Milestone changed from 5.0 to 5.1
Note: See TracTickets for help on using tickets.