From 1543954adcddf54f1c2457b5e3160e958c0bd011 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 2 Nov 2020 20:20:07 +0000 Subject: [PATCH] Docs: Update description for the `$context` parameter of `sanitize_title()` and `sanitize_title_with_dashes()`. This brings some consistency between the two DocBlocks and adjusts the latter one per the documentation standards. Follow-up to [49482]. See #50569. Built from https://develop.svn.wordpress.org/trunk@49484 git-svn-id: http://core.svn.wordpress.org/trunk@49243 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index cc81c86bb7..f5930d4ec0 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -2164,6 +2164,7 @@ function sanitize_key( $key ) { * @param string $title The string to be sanitized. * @param string $fallback_title Optional. A title to use if $title is empty. Default empty. * @param string $context Optional. The operation for which the string is sanitized. + * When set to 'save', the string runs through remove_accents(). * Default 'save'. * @return string The sanitized string. */ @@ -2216,8 +2217,9 @@ 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 context for the sanitization. When set to 'save', additional entities are converted to hyphens or stripped entirely. - * Default 'display'. + * @param string $context Optional. The operation for which the string is sanitized. + * When set to 'save', additional entities are converted to hyphens + * or stripped entirely. Default 'display'. * @return string The sanitized title. */ function sanitize_title_with_dashes( $title, $raw_title = '', $context = 'display' ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 2880f045e0..de92df5d15 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta2-49483'; +$wp_version = '5.6-beta2-49484'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.