When stripping off a pathinfo home root (/index.php/) do it with case insensitivity. props SergeyBiryukov. fixes #13164. see #8847.
git-svn-id: http://core.svn.wordpress.org/trunk@22298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
02c63e7d06
commit
6346dfe407
|
@ -1422,7 +1422,7 @@ function get_pagenum_link($pagenum = 1, $escape = true ) {
|
|||
$home_root = ( isset($home_root['path']) ) ? $home_root['path'] : '';
|
||||
$home_root = preg_quote( $home_root, '|' );
|
||||
|
||||
$request = preg_replace('|^'. $home_root . '|', '', $request);
|
||||
$request = preg_replace('|^'. $home_root . '|i', '', $request);
|
||||
$request = preg_replace('|^/+|', '', $request);
|
||||
|
||||
if ( !$wp_rewrite->using_permalinks() || is_admin() ) {
|
||||
|
@ -1445,7 +1445,7 @@ function get_pagenum_link($pagenum = 1, $escape = true ) {
|
|||
}
|
||||
|
||||
$request = preg_replace( "|$wp_rewrite->pagination_base/\d+/?$|", '', $request);
|
||||
$request = preg_replace( '|^index\.php|', '', $request);
|
||||
$request = preg_replace( '|^index\.php|i', '', $request);
|
||||
$request = ltrim($request, '/');
|
||||
|
||||
$base = trailingslashit( get_bloginfo( 'url' ) );
|
||||
|
|
Loading…
Reference in New Issue