Make WordPress Core


Ignore:
Timestamp:
04/20/2015 07:05:26 PM (11 years ago)
Author:
pento
Message:

Fix some wpdb::check_safe_collation() calls missed in [32181].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0/src/wp-includes/wp-db.php

    r32184 r32225  
    20302030        public function get_var( $query = null, $x = 0, $y = 0 ) {
    20312031                $this->func_call = "\$db->get_var(\"$query\", $x, $y)";
     2032
     2033                if ( $this->check_safe_collation( $query ) ) {
     2034                        $this->check_current_query = false;
     2035                }
     2036
    20322037                if ( $query )
    20332038                        $this->query( $query );
     
    20572062        public function get_row( $query = null, $output = OBJECT, $y = 0 ) {
    20582063                $this->func_call = "\$db->get_row(\"$query\",$output,$y)";
     2064
     2065                if ( $this->check_safe_collation( $query ) ) {
     2066                        $this->check_current_query = false;
     2067                }
     2068
    20592069                if ( $query )
    20602070                        $this->query( $query );
     
    20932103         */
    20942104        public function get_col( $query = null , $x = 0 ) {
     2105                if ( $this->check_safe_collation( $query ) ) {
     2106                        $this->check_current_query = false;
     2107                }
     2108
    20952109                if ( $query )
    20962110                        $this->query( $query );
     
    21192133        public function get_results( $query = null, $output = OBJECT ) {
    21202134                $this->func_call = "\$db->get_results(\"$query\", $output)";
     2135
     2136                if ( $this->check_safe_collation( $query ) ) {
     2137                        $this->check_current_query = false;
     2138                }
    21212139
    21222140                if ( $query )
Note: See TracChangeset for help on using the changeset viewer.