Changeset 3197

Show
Ignore:
Timestamp:
11/22/05 21:07:48 (3 years ago)
Author:
ryan
Message:

Store some values in the class for debug purposes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/classes.php

    r3130 r3197  
    14021402    var $query_vars; 
    14031403    var $query_string; 
     1404    var $request; 
     1405    var $matched_rule; 
     1406    var $matched_query; 
    14041407    var $did_permalink = false; 
    14051408 
     
    14521455                $request = $req_uri; 
    14531456            } 
     1457            $this->request = $request; 
    14541458 
    14551459            // Look for matches. 
     
    14641468                if (preg_match("!^$match!", $request_match, $matches)) { 
    14651469                    // Got a match. 
     1470                    $this->matched_rule = $match; 
     1471 
    14661472                    // Trim the query of everything up to the '?'. 
    14671473                    $query = preg_replace("!^.+\?!", '', $query); 
     
    14691475                    // Substitute the substring matches into the query. 
    14701476                    eval("\$query = \"$query\";"); 
     1477                    $this->matched_query = $query; 
    14711478 
    14721479                    // Parse the query.