WordPress.org

Make WordPress Core

Ticket #43268: 43268.diff

File 43268.diff, 755 bytes (added by danieltj, 3 years ago)

Added 'if' to the docs.

  • wp-includes/taxonomy.php

    diff --git wp-includes/taxonomy.php wp-includes/taxonomy.php
    index 92a4ee7..e042495 100644
    function has_term_meta( $term_id ) { 
    12911291 * @param int        $parent   Optional. ID of parent term under which to confine the exists search.
    12921292 * @return mixed Returns null if the term does not exist. Returns the term ID
    12931293 *               if no taxonomy is specified and the term ID exists. Returns
    1294  *               an array of the term ID and the term taxonomy ID the taxonomy
     1294 *               an array of the term ID and the term taxonomy ID if the taxonomy
    12951295 *               is specified and the pairing exists.
    12961296 */
    12971297function term_exists( $term, $taxonomy = '', $parent = null ) {