Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 64c22a9c09603952a43bc1d0f611a7f6d082bca5 1 parent 404f32b
@grange authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.