Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 3d1e43d

Browse files
committed
fix XRDS simple bug
fix diso/wordpress-xrds-simple#4
1 parent 118066c commit 3d1e43d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

consumer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ function openid_consumer_xrds_simple($xrds) {
249249
// OpenID Consumer Service
250250
$return_urls = array_unique(apply_filters('openid_consumer_return_urls', array(openid_service_url('consumer', 'login_post'))));
251251
if (!empty($return_urls)) {
252+
// fixes https://github.com/diso/wordpress-xrds-simple/issues/4
253+
unset( $xrds['main']['type'] );
252254
$xrds = xrds_add_simple_service($xrds, 'OpenID Consumer Service', 'http://specs.openid.net/auth/2.0/return_to', $return_urls);
253255
}
254256
}

0 commit comments

Comments
 (0)