Make WordPress Core


Ignore:
Timestamp:
03/20/2008 11:34:32 PM (18 years ago)
Author:
ryan
Message:

Capture last db error. Pass it in WP_Error data when term inserts fail. Fix typo in WP_Ajax_Response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r7419 r7431  
    1919    var $show_errors = false;
    2020    var $suppress_errors = false;
     21    var $last_error = '';
    2122    var $num_queries = 0;
    2223    var $last_query;
     
    279280
    280281        // If there is an error then take note of it..
    281         if ( mysql_error($this->dbh) ) {
     282        if ( $this->last_error = mysql_error($this->dbh) ) {
    282283            $this->print_error();
    283284            return false;
Note: See TracChangeset for help on using the changeset viewer.