Ticket #54560: wp-db.php.diff
File wp-db.php.diff, 708 bytes (added by , 3 years ago) |
---|
-
src/wp-includes/wp-db.php
2798 2798 */ 2799 2799 public function get_results( $query = null, $output = OBJECT ) { 2800 2800 $this->func_call = "\$db->get_results(\"$query\", $output)"; 2801 $query_success = false; 2801 2802 2802 2803 if ( $query ) { 2803 2804 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { … … 2804 2805 $this->check_current_query = false; 2805 2806 } 2806 2807 2807 $this->query( $query ); 2808 } else { 2808 $query_success = $this->query( $query ); 2809 } 2810 2811 if ( false === $query_success ) { 2809 2812 return null; 2810 2813 } 2811 2814