Changeset 49789 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 12/10/2020 11:51:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r49769 r49789 1510 1510 1511 1511 /** 1512 * Sanitize Term allfields.1512 * Sanitize all term fields. 1513 1513 * 1514 1514 * 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 based1515 * this function will sanitize **all** fields. The context is based 1516 1516 * on sanitize_term_field(). 1517 1517 * 1518 * The $termis expected to be either an array or an object.1518 * The `$term` is expected to be either an array or an object. 1519 1519 * 1520 1520 * @since 2.3.0 … … 1522 1522 * @param array|object $term The term to check. 1523 1523 * @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'. 1526 1527 * @return array|object Term with all fields sanitized. 1527 1528 */ … … 1573 1574 * @param int $term_id Term ID. 1574 1575 * @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'. 1577 1579 * @return mixed Sanitized field. 1578 1580 */
Note: See TracChangeset
for help on using the changeset viewer.