Skip to content

Commit 972bbb6

Browse files
westonruterclaude
andcommitted
Fix bail() return type: void|false → false
When show_errors is true, wp_die() is called which never returns. When false, it returns false. So the only actual return value is false. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent cffb2a2 commit 972bbb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/class-wpdb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3940,7 +3940,7 @@ public function timer_stop() {
39403940
* @param string $message The error message.
39413941
* @param string $error_code Optional. A computer-readable string to identify the error.
39423942
* Default '500'.
3943-
* @return void|false Void if the showing of errors is enabled, false if disabled.
3943+
* @return false False if the showing of errors is disabled.
39443944
*/
39453945
public function bail( $message, $error_code = '500' ) {
39463946
if ( $this->show_errors ) {

0 commit comments

Comments
 (0)