Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Feb 28, 2012
1 parent dfe426e commit 083cc5c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,29 +38,29 @@ function queryVars($vars) {
*/
function rewriteRules($wp_rewrite) {
$wellKnownRules = array(
'.well-known/(.+)' => 'index.php?well-known='.$wp_rewrite->preg_index(1),
'.well-known/(.+)' => 'index.php?well-known='.$wp_rewrite->preg_index(1),
);

$wp_rewrite->rules = $wellKnownRules + $wp_rewrite->rules;
}

/**
 * delegates the request to the matching (registered) class
 */
* delegates the request to the matching (registered) class
*/
function delegateRequest() {
global $wp;

if (array_key_exists('well-known', $wp->query_vars)) {
$id = $wp->query_vars['well-known'];

  if (array_key_exists('well-known', $wp->query_vars)) {
    $id = $wp->query_vars['well-known'];

    do_action("well_known_{$id}", $wp->query_vars);
do_action("well_known_{$id}", $wp->query_vars);

    // @deprecated please du not use
    // still experimenting :)
    if( isset($wp->query_vars['well-known']) ) {
      do_action("well-known", $wp->query_vars);
      exit;
    }
  }
// @deprecated please du not use
// still experimenting :)
if( isset($wp->query_vars['well-known']) ) {
do_action("well-known", $wp->query_vars);
exit;
}
}
}
}
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: Matthias Pfefferle
Donate link: http://www.14101978.de
Tags: OpenID, XRD, well-known, XML, Discovery
Requires at least: 3.0.5
Tested up to: 3.3.1
Tested up to: 3.2
Stable tag: 0.5.1

This plugin enables "Well-Known URIs" support for WordPress
Expand Down

0 comments on commit 083cc5c

Please sign in to comment.