Make WordPress Core

Ticket #57149: 57149.diff

File 57149.diff, 664 bytes (added by prettyboymp, 17 months ago)
  • src/wp-includes/class-wpdb.php

     
    35313531                 * which drop-ins can use for routing these SQL statements.
    35323532                 */
    35333533                if ( preg_match( '/^\s*SHOW\s+(?:TABLE\s+STATUS|(?:FULL\s+)?TABLES)\s+(?:WHERE\s+Name\s+)?LIKE\s*("|\')((?:[\\\\0-9a-zA-Z$_.-]|[\xC2-\xDF][\x80-\xBF])+)%?\\1/is', $query, $maybe ) ) {
    3534                         return str_replace( '\\_', '_', $maybe[2] );
     3534                        return str_replace( ['\\\\_', '\\_'], '_', $maybe[2] );
    35353535                }
    35363536
    35373537                // Big pattern for the rest of the table-related queries.