wordpress/wp-content/plugins/sqlite-integration/query.class.php
/**
	 * Method to rewrite DATE_SUB() function.
	 *
	 * DATE_SUB has a parameter PHP function can't parse, so we quote the list and
	 * pass it to the user defined function.
	 *
	 * @access private
	 */
Method to rewrite DATE_SUB() function.
DATE_SUB has a parameter PHP function can't parse, so we quote the list and
pass it to the user defined function.

@access private
Method to rewrite DATE_SUB () function . DATE_SUB has a parameter PHP function can ' t parse so we quote the list and pass it to the user defined function . @access private
private function rewrite_date_sub(){
		$pattern = '/\\s*date_sub\\s*\(([^,]*),([^\)]*)\)/imsx';
		if (preg_match($pattern, $this->_query, $matches)) {
			$expression   = "'".trim($matches[2])."'";
			$this->_query = preg_replace($pattern, " date_sub($matches[1], $expression) ", $this->_query);
		}
	}
private function rewrite_date_sub ( ) { $ pattern = '/\\s*date_sub\\s*\(([^,]*),([^\)]*)\)/imsx' ; if ( preg_match ( $ pattern , $ this -> _query , $ matches ) ) { $ expression = " ' " . trim ( $ matches [ 2 ] ) . " ' " ; $ this -> _query = preg_replace ( $ pattern , "  date_sub( $ matches [ 1 ] ,  $ expression )  " , $ this -> _query ) ; } }
Method to rewrite DATE_SUB() function.
Method to rewrite DATE_SUB () function .
//(date,interval expression unit)