From 83da7ca3606d2c3efbc6ece39b4e6cfa5bbcc076 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 25 Jul 2022 15:43:09 +0000 Subject: [PATCH] Docs: Refine `@return` docblock mentions for `esc_sql()`, `wp_slash()` and `wp_unslash()`. Props malthert, SergeyBiryukov, johnbillion, desrosj, byohann6. Fixes #53946. See #55646. Built from https://develop.svn.wordpress.org/trunk@53775 git-svn-id: http://core.svn.wordpress.org/trunk@53334 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 46668daafe..097c8a6121 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -4344,8 +4344,8 @@ function _deep_replace( $search, $subject ) { * * @global wpdb $wpdb WordPress database abstraction object. * - * @param string|array $data Unescaped data - * @return string|array Escaped data + * @param string|array $data Unescaped data. + * @return string|array Escaped data, in the same type as supplied. */ function esc_sql( $data ) { global $wpdb; @@ -5616,7 +5616,7 @@ function sanitize_trackback_urls( $to_ping ) { * @since 5.5.0 Non-string values are left untouched. * * @param string|array $value String or array of data to slash. - * @return string|array Slashed `$value`. + * @return string|array Slashed `$value`, in the same type as supplied. */ function wp_slash( $value ) { if ( is_array( $value ) ) { @@ -5639,7 +5639,7 @@ function wp_slash( $value ) { * @since 3.6.0 * * @param string|array $value String or array of data to unslash. - * @return string|array Unslashed `$value`. + * @return string|array Unslashed `$value`, in the same type as supplied. */ function wp_unslash( $value ) { return stripslashes_deep( $value ); diff --git a/wp-includes/version.php b/wp-includes/version.php index bd6225f8d5..361c43ca2c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53774'; +$wp_version = '6.1-alpha-53775'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.