Make WordPress Core


Ignore:
Timestamp:
12/10/2020 11:51:52 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Various docblock corrections.

See #51800

File:
1 edited

Legend:

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

    r49769 r49789  
    15101510
    15111511/**
    1512  * Sanitize Term all fields.
     1512 * Sanitize all term fields.
    15131513 *
    15141514 * Relies on sanitize_term_field() to sanitize the term. The difference is that
    1515  * this function will sanitize <strong>all</strong> fields. The context is based
     1515 * this function will sanitize **all** fields. The context is based
    15161516 * on sanitize_term_field().
    15171517 *
    1518  * The $term is expected to be either an array or an object.
     1518 * The `$term` is expected to be either an array or an object.
    15191519 *
    15201520 * @since 2.3.0
     
    15221522 * @param array|object $term     The term to check.
    15231523 * @param string       $taxonomy The taxonomy name to use.
    1524  * @param string       $context  Optional. Context in which to sanitize the term. Accepts 'edit', 'db',
    1525  *                               'display', 'attribute', or 'js'. Default 'display'.
     1524 * @param string       $context  Optional. Context in which to sanitize the term.
     1525 *                               Accepts 'raw', 'edit', 'db', 'display', 'rss',
     1526 *                               'attribute', or 'js'. Default 'display'.
    15261527 * @return array|object Term with all fields sanitized.
    15271528 */
     
    15731574 * @param int    $term_id  Term ID.
    15741575 * @param string $taxonomy Taxonomy Name.
    1575  * @param string $context  Context in which to sanitize the term field. Accepts 'edit', 'db', 'display',
    1576  *                         'attribute', or 'js'.
     1576 * @param string $context  Context in which to sanitize the term field.
     1577 *                         Accepts 'raw', 'edit', 'db', 'display', 'rss',
     1578 *                         'attribute', or 'js'. Default 'display'.
    15771579 * @return mixed Sanitized field.
    15781580 */
Note: See TracChangeset for help on using the changeset viewer.