Make WordPress Core

Changeset 61672


Ignore:
Timestamp:
02/18/2026 07:08:50 AM (3 weeks ago)
Author:
wildworks
Message:

Docs: Remove default value from sanitize_term_field() PHPDoc.

The $context parameter in sanitize_term_field() is required and has no default value in the function signature. The PHPDoc previously stated Default 'display', which was incorrect and could lead callers to assume the argument was optional.

Follow-up to [49789].

Props audrasjb, dilipbheda, johnbillion, mindctrl, mukesh27, Presskopp, rollybueno, SirLouen, vishalkakadiya, wildworks

Fixes #63257.

File:
1 edited

Legend:

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

    r61445 r61672  
    17681768 * @param string $context  Context in which to sanitize the term field.
    17691769 *                         Accepts 'raw', 'edit', 'db', 'display', 'rss',
    1770  *                         'attribute', or 'js'. Default 'display'.
     1770 *                         'attribute', or 'js'.
    17711771 * @return mixed Sanitized field.
    17721772 */
Note: See TracChangeset for help on using the changeset viewer.