[wp-trac] Re: [WordPress Trac] #7406: get_pagenum_link broken for
IIS resurfaces
WordPress Trac
wp-trac at lists.automattic.com
Sat Jul 26 08:49:18 GMT 2008
#7406: get_pagenum_link broken for IIS resurfaces
------------------------------------------------------------+---------------
Reporter: skaufmann | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.6
Severity: normal | Resolution:
Keywords: get_pagenum_link, categories, tags, navigation |
------------------------------------------------------------+---------------
Comment (by skaufmann):
Unfortunately the patch didn't work. Here is the full Isapi Rewrite
snippet from my wp-setting.php with your patch.
{{{
// IIS Isapi_Rewrite
else if (isset($_SERVER['HTTP_X_REWRITE_URL'])) {
$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL'];
}
else
{
// Use ORIG_PATH_INFO if there is no PATH_INFO
if ( !isset($_SERVER['PATH_INFO']) &&
isset($_SERVER['ORIG_PATH_INFO']) )
$_SERVER['PATH_INFO'] =
$_SERVER['ORIG_PATH_INFO'];
// Some IIS + PHP configurations puts the script-
name in the path-info (No need to append it twice)
if ( isset($_SERVER['PATH_INFO']) ) {
if ( $_SERVER['PATH_INFO'] ==
$_SERVER['SCRIPT_NAME'] )
$_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
}
}
} else if ( $_SERVER['REQUEST_URI'] == $_SERVER['PHP_SELF'] ) {
// If REQUEST_URI is the same as PHP_SELF, look for something more
authoritative
if ( !empty($_SERVER['HTTP_X_REWRITE_URL']) )
$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL'];
else if ( !empty($_SERVER['HTTP_X_ORIGINAL_URL']) )
$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_ORIGINAL_URL'];
}
// Fix for PHP as CGI hosts that set SCRIPT_FILENAME to something ending
in php.cgi for all requests
}}}
I don't know when it started. I haven't, till 2.6, started relying on
category pagination for my blog. I migrated from WGP2 to embedded gallery
because of the new features in 2.6 and began relying on the category to
organize my galleries.
--
Ticket URL: <http://trac.wordpress.org/ticket/7406#comment:12>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list