Make WordPress Core

Ticket #61879: fix-deprecation-warning.diff

File fix-deprecation-warning.diff, 501 bytes (added by pcalvo, 2 months ago)

fix

  • src/wp-includes/formatting.php

    diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php
    index e618536f41..1a109f108a 100644
    a b function esc_attr( $text ) { 
    47174717 * @return string
    47184718 */
    47194719function esc_textarea( $text ) {
     4720        $text = is_null($text) ? '' : $text;
    47204721        $safe_text = htmlspecialchars( $text, ENT_QUOTES, get_option( 'blog_charset' ) );
    47214722        /**
    47224723         * Filters a string cleaned and escaped for output in a textarea element.