Make WordPress Core


Ignore:
Timestamp:
07/25/2022 03:41:10 PM (2 years ago)
Author:
audrasjb
Message:

Docs: Refine @return docblock mentions for esc_sql(), wp_slash() and wp_unslash().

Props malthert, SergeyBiryukov, johnbillion, desrosj, byohann6.
Fixes #53946.
See #55646.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r53754 r53775  
    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 */
    43504350function esc_sql( $data ) {
     
    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 */
    56215621function wp_slash( $value ) {
     
    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 */
    56445644function wp_unslash( $value ) {
Note: See TracChangeset for help on using the changeset viewer.