Changeset 21178
- Timestamp:
- 06/29/2012 03:08:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r21161 r21178 1107 1107 } 1108 1108 1109 if ( preg_match( '/^\s*(create|alter|truncate|drop) 1109 if ( preg_match( '/^\s*(create|alter|truncate|drop)\s/i', $query ) ) { 1110 1110 $return_val = $this->result; 1111 } elseif ( preg_match( '/^\s*(insert|delete|update|replace) 1111 } elseif ( preg_match( '/^\s*(insert|delete|update|replace)\s/i', $query ) ) { 1112 1112 $this->rows_affected = mysql_affected_rows( $this->dbh ); 1113 1113 // Take note of the insert_id 1114 if ( preg_match( '/^\s*(insert|replace) 1114 if ( preg_match( '/^\s*(insert|replace)\s/i', $query ) ) { 1115 1115 $this->insert_id = mysql_insert_id($this->dbh); 1116 1116 }
Note: See TracChangeset
for help on using the changeset viewer.