Make WordPress Core


Ignore:
Timestamp:
07/23/2020 09:09:04 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Another pass at some inline docs fixes mostly made by PHPCBF.

See #49572, #50744

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r48480 r48590  
    840840 * @see sanitize_term_field() The $context param lists the available values for get_term_by() $filter param.
    841841 *
    842  * @param int|WP_Term|object $term If integer, term data will be fetched from the database, or from the cache if
    843  *                                 available. If stdClass object (as in the results of a database query), will apply
    844  *                                 filters and return a `WP_Term` object corresponding to the `$term` data. If `WP_Term`,
    845  *                                 will return `$term`.
    846  * @param string     $taxonomy Optional. Taxonomy name that $term is part of.
    847  * @param string     $output   Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to
    848  *                             a WP_Term object, an associative array, or a numeric array, respectively. Default OBJECT.
    849  * @param string     $filter   Optional. How to sanitize term fields. Default 'raw'.
     842 * @param int|WP_Term|object $term     If integer, term data will be fetched from the database, or from the cache if
     843 *                                     available. If stdClass object (as in the results of a database query), will apply
     844 *                                     filters and return a `WP_Term` object corresponding to the `$term` data. If
     845 *                                     `WP_Term`, will return `$term`.
     846 * @param string             $taxonomy Optional. Taxonomy name that $term is part of.
     847 * @param string             $output   Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which
     848 *                                     correspond toa WP_Term object, an associative array, or a numeric array
     849 *                                     respectively. Default OBJECT.
     850 * @param string             $filter   Optional. How to sanitize term fields. Default 'raw'.
    850851 * @return WP_Term|array|WP_Error|null Object of the type specified by `$output` on success. When `$output` is 'OBJECT',
    851852 *                                     a WP_Term instance is returned. If taxonomy does not exist, a WP_Error is
     
    44344435 *
    44354436 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
    4436  * @param array $args {
    4437  *     Optional. Arguments about how to format the list of taxonomies. Default empty array.
     4437 * @param array       $args {
     4438 *           Optional. Arguments about how to format the list of taxonomies. Default empty array.
    44384439 *
    44394440 *     @type string $template      Template for displaying a taxonomy label and list of terms.
Note: See TracChangeset for help on using the changeset viewer.