~hsn10/wordpress/wordpress-db2

« back to all changes in this revision

Viewing changes to wp-content/db.php

  • Committer: hsn at sendmail
  • Date: 2011-01-12 09:36:35 UTC
  • Revision ID: hsn@sendmail.cz-20110112093635-zptlhwjj3qu0xu2w
remove debug prints

Show diffs side-by-side

added added

removed removed

Lines of Context:
306
306
 
307
307
                // parse query using LIMIT skip,fetchrows
308
308
                if ( preg_match('/LIMIT\s*(\d+)\s*,\s*(\d+)\s*$/i', $query, $matches )) {
309
 
                        echo "<br>Possible limit found: $query\n<p>\n";
310
309
                        $skip = $matches[1];
311
310
                        $rows = $matches[2];
312
311
                        // remove limit
313
312
            $query = substr($query,0,strlen($query)-strlen($matches[0]));
314
 
            echo "<br>Rewritten query: $query\n<p>";
315
313
                }
316
314
 
317
315
                // remove SQL_CALC_FOUND_ROWS