Changeset 33260 for branches/4.2/src/wp-includes/wp-db.php
- Timestamp:
- 07/14/2015 10:20:55 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2/src/wp-includes/wp-db.php
r33063 r33260 2834 2834 $query = ltrim( $query, "\r\n\t (" ); 2835 2835 2836 /* 2837 * Strip everything between parentheses except nested selects and use only 1,000 2838 * chars of the query. 2839 */ 2840 $query = preg_replace( '/\((?!\s*select)[^(]*?\)/is', '()', substr( $query, 0, 1000 ) ); 2836 // Strip everything between parentheses except nested selects. 2837 $query = preg_replace( '/\((?!\s*select)[^(]*?\)/is', '()', $query ); 2841 2838 2842 2839 // Quickly match most common queries.
Note: See TracChangeset
for help on using the changeset viewer.