Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/wp-includes/class-wpdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -2348,7 +2348,12 @@
}

if ( ! empty( $this->dbh ) ) {
$this->result = mysqli_query( $this->dbh, $query );
try {

Check failure on line 2351 in src/wp-includes/class-wpdb.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Tabs must be used to indent lines; spaces are not allowed
$this->result = mysqli_query( $this->dbh, $query );

Check failure on line 2352 in src/wp-includes/class-wpdb.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Tabs must be used to indent lines; spaces are not allowed
} catch ( Exception $e ) {

Check failure on line 2353 in src/wp-includes/class-wpdb.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Tabs must be used to indent lines; spaces are not allowed
$this->result = false;

Check failure on line 2354 in src/wp-includes/class-wpdb.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Tabs must be used to indent lines; spaces are not allowed
$this->last_error = $e->getMessage();

Check failure on line 2355 in src/wp-includes/class-wpdb.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Tabs must be used to indent lines; spaces are not allowed
}

Check failure on line 2356 in src/wp-includes/class-wpdb.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Tabs must be used to indent lines; spaces are not allowed
}

++$this->num_queries;
Expand Down
Loading