Changeset 41 in tests
- Timestamp:
- 10/03/2007 02:20:35 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-testlib/base.php
r39 r41 74 74 if (isset($parts['scheme'])) { 75 75 $req = $parts['path']; 76 if (isset($parts['query'])) 76 if (isset($parts['query'])) { 77 77 $req .= '?' . $parts['query']; 78 // parse the url query vars into $_GET 79 parse_str($parts['query'], $_GET); 80 dmp($_GET); 81 } 78 82 } 79 83 else { … … 81 85 } 82 86 83 query_posts($path); 87 #query_posts($req); 88 $_SERVER['REQUEST_URI'] = $req; 89 $GLOBALS['wp'] =& new WP(); 90 $GLOBALS['wp']->main($parts['query']); 84 91 } 85 92
Note: See TracChangeset
for help on using the changeset viewer.