Skip to content

Commit 452f0d3

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@61672 602fd350-edb4-49c9-b593-d223f7449a82
1 parent c9d80d3 commit 452f0d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/taxonomy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ function sanitize_term( $term, $taxonomy, $context = 'display' ) {
17671767
* @param string $taxonomy Taxonomy name.
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
*/
17731773
function sanitize_term_field( $field, $value, $term_id, $taxonomy, $context ) {

0 commit comments

Comments
 (0)