Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#43268 closed defect (bug) (fixed)

Typo in the docs of term_exists()

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

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 9 years ago.
43268.diff (755 bytes ) - added by danieltj 9 years ago.
Added 'if' to the docs.

Download all attachments as: .zip

Change History (10)

@milana_cap
9 years ago

#1 @milana_cap
9 years ago

  • Keywords has-patch added; needs-patch removed

Actually, it was in docs for term_exists().

@danieltj
9 years ago

Added 'if' to the docs.

#2 @danieltj
9 years ago

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

#3 @SergeyBiryukov
9 years ago

  • Milestone Awaiting Review5.0

#4 @swissspidy
9 years ago

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

Whoops, sorry folks! Copy paste mistake,

#5 @DrewAPicture
9 years ago

  • Owner set to danieltj
  • Status newassigned

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

#6 @SergeyBiryukov
9 years ago

  • Resolutionfixed
  • Status assignedclosed

In 42699:

Docs: Fix typo in term_exists() DocBlock.

Props milana_cap, danieltj.
Fixes #43268.

#7 @swissspidy
9 years ago

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

#8 @johnbillion
8 years ago

  • Milestone 5.05.1
Note: See TracTickets for help on using tickets.