Make WordPress Core

Ticket #6665: query_error_suppress.patch

File query_error_suppress.patch, 416 bytes (added by simonwheatley, 17 years ago)

Query error suppression option

  • wp-includes/classes.php

    old new  
    105105                                        $query = preg_replace("!^.+\?!", '', $query);
    106106
    107107                                        // Substitute the substring matches into the query.
    108                                         eval("\$query = \"$query\";");
     108                                        @ eval("\$query = \"$query\";");
    109109                                        $this->matched_query = $query;
    110110
    111111                                        // Parse the query.