WordPress.org

Make WordPress Core

Ticket #35919: 35919.patch

File 35919.patch, 1.0 KB (added by sebastian.pisula, 5 years ago)
  • wp-includes/taxonomy.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    813813 * @param string     $taxonomy Optional. Taxonomy name that $term is part of.
    814814 * @param string     $output   Constant OBJECT, ARRAY_A, or ARRAY_N
    815815 * @param string     $filter   Optional, default is raw or no WordPress defined filter will applied.
    816  * @return mixed Type corresponding to `$output` on success or null on failure. When `$output` is `OBJECT`,
     816 * @return array|WP_Term|WP_Error Type corresponding to `$output` on success or null on failure. When `$output` is `OBJECT`,
    817817 *               a WP_Term instance is returned. If taxonomy does not exist then WP_Error will be returned.
    818818 */
    819819function get_term( $term, $taxonomy = '', $output = OBJECT, $filter = 'raw' ) {