Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #30595


Ignore:
Timestamp:
12/04/2014 04:10:36 PM (9 years ago)
Author:
ocean90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30595 – Description

    initial v1  
    1 When performing a query, Wordpress filters out create, alter, truncate, drop, insert, delete, update, and replace queries so they don't call mysqli_fetch_object. These queries return a boolean, not a mysqli_result object and the call to mysqli_fetch_object gives an invalid argument. Set queries need to be added to this list.
     1When performing a query, WordPress filters out create, alter, truncate, drop, insert, delete, update, and replace queries so they don't call mysqli_fetch_object. These queries return a boolean, not a mysqli_result object and the call to mysqli_fetch_object gives an invalid argument. Set queries need to be added to this list.
    22
    3 Specifically, the '/^\s*(create|alter|truncate|drop)\s/i' regular expression needs to be changed to '/^\s*(create|alter|truncate|drop|set)\s/i'. In Wordpress 4.0.1, this is on line 1596 of wp-includes/wp-db.php.
     3Specifically, the `'/^\s*(create|alter|truncate|drop)\s/i'` regular expression needs to be changed to `'/^\s*(create|alter|truncate|drop|set)\s/i'`. In WordPress 4.0.1, this is on line 1596 of wp-includes/wp-db.php.