Changeset 51396
- Timestamp:
- 07/10/2021 11:14:46 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r51298 r51396 2574 2574 $this->func_call = "\$db->get_var(\"$query\", $x, $y)"; 2575 2575 2576 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) {2577 $this->check_current_query = false;2578 }2579 2580 2576 if ( $query ) { 2577 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2578 $this->check_current_query = false; 2579 } 2580 2581 2581 $this->query( $query ); 2582 2582 } … … 2608 2608 $this->func_call = "\$db->get_row(\"$query\",$output,$y)"; 2609 2609 2610 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) {2611 $this->check_current_query = false;2612 }2613 2614 2610 if ( $query ) { 2611 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2612 $this->check_current_query = false; 2613 } 2614 2615 2615 $this->query( $query ); 2616 2616 } else { … … 2650 2650 */ 2651 2651 public function get_col( $query = null, $x = 0 ) { 2652 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) {2653 $this->check_current_query = false;2654 }2655 2656 2652 if ( $query ) { 2653 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2654 $this->check_current_query = false; 2655 } 2656 2657 2657 $this->query( $query ); 2658 2658 } … … 2688 2688 $this->func_call = "\$db->get_results(\"$query\", $output)"; 2689 2689 2690 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) {2691 $this->check_current_query = false;2692 }2693 2694 2690 if ( $query ) { 2691 if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { 2692 $this->check_current_query = false; 2693 } 2694 2695 2695 $this->query( $query ); 2696 2696 } else {
Note: See TracChangeset
for help on using the changeset viewer.