Skip to content

Commit 730a15c

Browse files
committed
Docs: Refine @return docblock mentions for esc_sql(), wp_slash() and wp_unslash().
Props malthert, SergeyBiryukov, johnbillion, desrosj, byohann6. Fixes #53946. See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@53775 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 36fcd57 commit 730a15c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/wp-includes/formatting.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4344,8 +4344,8 @@ function _deep_replace( $search, $subject ) {
43444344
*
43454345
* @global wpdb $wpdb WordPress database abstraction object.
43464346
*
4347-
* @param string|array $data Unescaped data
4348-
* @return string|array Escaped data
4347+
* @param string|array $data Unescaped data.
4348+
* @return string|array Escaped data, in the same type as supplied.
43494349
*/
43504350
function esc_sql( $data ) {
43514351
global $wpdb;
@@ -5616,7 +5616,7 @@ function sanitize_trackback_urls( $to_ping ) {
56165616
* @since 5.5.0 Non-string values are left untouched.
56175617
*
56185618
* @param string|array $value String or array of data to slash.
5619-
* @return string|array Slashed `$value`.
5619+
* @return string|array Slashed `$value`, in the same type as supplied.
56205620
*/
56215621
function wp_slash( $value ) {
56225622
if ( is_array( $value ) ) {
@@ -5639,7 +5639,7 @@ function wp_slash( $value ) {
56395639
* @since 3.6.0
56405640
*
56415641
* @param string|array $value String or array of data to unslash.
5642-
* @return string|array Unslashed `$value`.
5642+
* @return string|array Unslashed `$value`, in the same type as supplied.
56435643
*/
56445644
function wp_unslash( $value ) {
56455645
return stripslashes_deep( $value );

0 commit comments

Comments
 (0)