[wp-trac] [WordPress Trac] #11723: Search Results Paging Doesn't Work Using Wordpress as 404 Handler
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 5 14:32:18 UTC 2010
#11723: Search Results Paging Doesn't Work Using Wordpress as 404 Handler
-----------------------------------------+----------------------------------
Reporter: danrha | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Unassigned
Component: General | Version: 2.9.1
Severity: major | Resolution: fixed
Keywords: search pages, 404, lighttpd |
-----------------------------------------+----------------------------------
Changes (by danrha):
* status: new => closed
* resolution: => fixed
Comment:
i have fixed it, wordpress doesn't look for query strings in the url... i
made this function and added it to wp-settings.php and made it run right
after wp_unregister_globals
function wp_fix_lighttpd() { //checks if URI has parameter and sets
globals
if (isset($_GET) && isset($_SERVER['QUERY_STRING'])) return;
$donga = explode('?', $_SERVER['REQUEST_URI'], 2);
if (count($donga) > 1) {
$_SERVER['QUERY_STRING'] = $donga[1]; //set query string
parse_str($donga[1], $_GET); //parse it and set get global
$_REQUEST = array_merge( (array)$_GET, (array)$_REQUEST);
//set request global
}
}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11723#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list