Make WordPress Core

Ticket #53946: 53946.diff

File 53946.diff, 1.2 KB (added by byohann6, 2 years ago)

Improve description for return types

  • src/wp-includes/formatting.php

    diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php
    index 3b977f4f4e..3d4a825d0d 100644
    a b function _deep_replace( $search, $subject ) { 
    43354335 * @global wpdb $wpdb WordPress database abstraction object.
    43364336 *
    43374337 * @param string|array $data Unescaped data
    4338  * @return string|array Escaped data
     4338 * @return string|array Escaped data, in the same type as supplied
    43394339 */
    43404340function esc_sql( $data ) {
    43414341        global $wpdb;
    function sanitize_trackback_urls( $to_ping ) { 
    56065606 * @since 5.5.0 Non-string values are left untouched.
    56075607 *
    56085608 * @param string|array $value String or array of data to slash.
    5609  * @return string|array Slashed `$value`.
     5609 * @return string|array Slashed `$value`, in the same type as supplied.
    56105610 */
    56115611function wp_slash( $value ) {
    56125612        if ( is_array( $value ) ) {
    function wp_slash( $value ) { 
    56295629 * @since 3.6.0
    56305630 *
    56315631 * @param string|array $value String or array of data to unslash.
    5632  * @return string|array Unslashed `$value`.
     5632 * @return string|array Unslashed `$value`, in the same type as supplied.
    56335633 */
    56345634function wp_unslash( $value ) {
    56355635        return stripslashes_deep( $value );