Make WordPress Core

Ticket #57678: 2595-fixed-the-bug.patch

File 2595-fixed-the-bug.patch, 712 bytes (added by chiragrathod103, 16 months ago)
  • src/wp-admin/setup-config.php

    From 2e6720a20786b1df089c22bdfa1b5613331c9a6c Mon Sep 17 00:00:00 2001
    From: chirag <crathod@codal.com>
    Date: Tue, 14 Feb 2023 18:42:12 +0530
    Subject: [PATCH 2595/2595] fixed the bug
    
    ---
     src/wp-admin/setup-config.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/wp-admin/setup-config.php b/src/wp-admin/setup-config.php
    index 30a1b79502..ca18f84139 100644
    a b switch ( $step ) { 
    322322                }
    323323
    324324                $errors = $wpdb->suppress_errors();
    325                 $wpdb->query( "SELECT $prefix" );
     325                $wpdb->prepare( "SELECT $prefix" );
    326326                $wpdb->suppress_errors( $errors );
    327327
    328328                if ( ! $wpdb->last_error ) {