Make WordPress Core

Ticket #57762: 57762.diff

File 57762.diff, 840 bytes (added by chiragrathod103, 2 years ago)

Fixed the warning error

  • src/wp-includes/class-wpdb.php

    diff --git a/src/wp-includes/class-wpdb.php b/src/wp-includes/class-wpdb.php
    index 1c7899a9ad..8ea880b1f4 100644
    a b class wpdb { 
    18011801         *                Call wpdb::prepare() or wpdb::_real_escape() next.
    18021802         */
    18031803        public function esc_like( $text ) {
     1804                $text = $text ?? '';
    18041805                return addcslashes( $text, '_%\\' );
    18051806        }
    18061807