Skip to content
Browse files

Fix permalinks rewrite check

Use index.php PATHINFO permalinks rewrite mode only if
using_index_permalinks is true. This fixes non-Apache
servers like nginx.
  • Loading branch information...
1 parent 404f32b commit 64c22a9c09603952a43bc1d0f611a7f6d082bca5 @grange committed Dec 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 common.php
View
2 common.php
@@ -615,7 +615,7 @@ function openid_service_url($service, $scheme = null) {
if (!defined('OPENID_SSL') || !OPENID_SSL) $scheme = null;
$url = site_url('/', $scheme);
- if ($wp_rewrite->using_permalinks()) {
+ if ($wp_rewrite->using_index_permalinks()) {
$url .= 'index.php/openid/' . $service;
} else {
$url .= '?openid=' . $service;

0 comments on commit 64c22a9

Please sign in to comment.
Something went wrong with that request. Please try again.