From 38212b2400e0dfee63c4198d00d7b27682d03e3b Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Mon, 2 Nov 2020 20:10:47 +0000 Subject: [PATCH] Formatting: Update docs for `$context` in `sanitize_title_with_dashes()`. Props stevenlinx, audrasjb. Fixes #50569. git-svn-id: https://develop.svn.wordpress.org/trunk@49482 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 1cd43ab17f..92b9ace456 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -2216,7 +2216,7 @@ function sanitize_title_for_query( $title ) { * * @param string $title The title to be sanitized. * @param string $raw_title Optional. Not used. Default empty. - * @param string $context Optional. The operation for which the string is sanitized. + * @param string $context Optional. The context for the sanitization. When set to 'save', additional entities are converted to hyphens or stripped entirely. * Default 'display'. * @return string The sanitized title. */