Make WordPress Core

Ticket #64523: 64523.patch

File 64523.patch, 986 bytes (added by solankisoftware, 8 weeks ago)

Fixes #64523

  • wp-includes/class-wpdb.php

    a b  
    23482348       }
    23492349
    23502350       if ( ! empty( $this->dbh ) ) {
    2351            $this->result = mysqli_query( $this->dbh, $query );
     2351           try {
     2352               $this->result = mysqli_query( $this->dbh, $query );
     2353           } catch ( Exception $e ) {
     2354               $this->result = false;
     2355               $this->last_error = $e->getMessage();
     2356           }
    23522357       }
    23532358
    23542359       ++$this->num_queries;