Skip to content

Commit

Permalink
better action/filter
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Jun 28, 2011
1 parent 6d395d6 commit c5eb3e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 7 additions & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: /.well-known/
Plugin URI: http://notizblog.org/
Description: This plugin enables "Well-Known URIs" support for WordPress (RFC 5785: http://tools.ietf.org/html/rfc5785).
Version: 0.4
Version: 0.5
Author: Matthias Pfefferle
Author URI: http://notizblog.org/
*/
Expand Down Expand Up @@ -49,6 +49,12 @@ function rewriteRules($wp_rewrite) {
*/
function delegateRequest() {
global $wp;
$id = $wp->query_vars['well-known'];

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;
Expand Down
9 changes: 5 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Contributors: Matthias Pfefferle
Donate link: http://www.14101978.de
Tags: OpenID, XRD, well-known, XML, Discovery
Requires at least: 3.2
Tested up to: 3.2.9
Stable tag: 0.3
Requires at least: 3.1
Tested up to: 3.2
Stable tag: 0.5

This plugin enables "Well-Known URIs" support for WordPress (RFC 5785: http://tools.ietf.org/html/rfc5785).

Expand Down Expand Up @@ -36,7 +36,8 @@ From the RFC:
sites' URI space.

== Changelog ==

= 0.5 =
* better action/filter
= 0.4 =
* some improvements for host-meta (jrd)
= 0.3 =
Expand Down

0 comments on commit c5eb3e7

Please sign in to comment.