Index: wp-includes/classes.php
===================================================================
--- wp-includes/classes.php	(revision 11972)
+++ wp-includes/classes.php	(working copy)
@@ -487,12 +487,15 @@
 	 */
 	function main($query_args = '') {
 		$this->init();
-		$this->parse_request($query_args);
-		$this->send_headers();
-		$this->query_posts();
-		$this->handle_404();
-		$this->register_globals();
-		do_action_ref_array('wp', array(&$this));
+
+		if ( apply_filters('run_queries', true, $query_args) === true ) {
+			$this->parse_request($query_args);
+			$this->send_headers();
+			$this->query_posts();
+			$this->handle_404();
+			$this->register_globals();
+			do_action_ref_array('wp', array(&$this));
+		}
 	}
 
 	/**
