Make WordPress Core


Ignore:
Timestamp:
02/12/2006 07:53:23 AM (21 years ago)
Author:
ryan
Message:

Death to trailing tabs. Props Mark J. fixes #2405

File:
1 edited

Legend:

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

    r2737 r3517  
    1717
    1818        var $show_errors = true;
    19         var $num_queries = 0;   
     19        var $num_queries = 0;
    2020        var $last_query;
    2121        var $col_info;
    … …  
    7676        // ====================================================================
    7777        //      Format a string correctly for safe insert under all PHP conditions
    78        
     78
    7979        function escape($string) {
    8080                return addslashes( $string ); // Disable rest for now, causing problems
    … …  
    102102                        </div>";
    103103                } else {
    104                         return false;   
     104                        return false;
    105105                }
    106106        }
    … …  
    112112                $this->show_errors = true;
    113113        }
    114        
     114
    115115        function hide_errors() {
    116116                $this->show_errors = false;
    … …  
    143143                if (SAVEQUERIES)
    144144                        $this->timer_start();
    145                
     145
    146146                $this->result = @mysql_query($query, $this->dbh);
    147147                ++$this->num_queries;
    … …  
    160160                        // Take note of the insert_id
    161161                        if ( preg_match("/^\\s*(insert|replace) /i",$query) ) {
    162                                 $this->insert_id = mysql_insert_id($this->dbh); 
     162                                $this->insert_id = mysql_insert_id($this->dbh);
    163163                        }
    164164                        // Return number of rows affected
    … …  
    180180                        // Log number of rows the query returned
    181181                        $this->num_rows = $num_rows;
    182                        
     182
    183183                        // Return number of rows selected
    184184                        $return_val = $this->num_rows;
    … …  
    294294                return true;
    295295        }
    296        
     296
    297297        function timer_stop($precision = 3) {
    298298                $mtime = microtime();
    … …  
    306306        if ( !$this->show_errors )
    307307                return false;
    308         header( 'Content-Type: text/html; charset=utf-8');             
     308        header( 'Content-Type: text/html; charset=utf-8');
    309309        echo <<<HEAD
    310310        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    … …  
    326326                        padding: .2em 2em;
    327327                }
    328                
     328
    329329                h1 {
    330330                        color: #006;
    … …  
    332332                        font-weight: lighter;
    333333                }
    334                
     334
    335335                h2 {
    336336                        font-size: 16px;
    337337                }
    338                
     338
    339339                p, li, dt {
    340340                        line-height: 140%;
    341341                        padding-bottom: 2px;
    342342                }
    343        
     343
    344344                ul, ol {
    345345                        padding: 5px 5px 5px 20px;
Note: See TracChangeset for help on using the changeset viewer.