Skip to content

Commit 612def3

Browse files
committed
Add explicit return null to wpdb::get_row()
1 parent f57015e commit 612def3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/wp-includes/class-wpdb.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3087,6 +3087,7 @@ public function get_row( $query = null, $output = OBJECT, $y = 0 ) {
30873087
} else {
30883088
$this->print_error( ' $db->get_row(string query, output type, int offset) -- Output type must be one of: OBJECT, ARRAY_A, ARRAY_N' );
30893089
}
3090+
return null;
30903091
}
30913092

30923093
/**

0 commit comments

Comments
 (0)