Skip to content

Commit

Permalink
still playing around
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Feb 13, 2013
1 parent 314b0d6 commit c1653a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
21 changes: 7 additions & 14 deletions 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://wordpress.org/extend/plugins/well-known/
Description: This plugin enables "Well-Known URIs" support for WordPress (RFC 5785: http://tools.ietf.org/html/rfc5785).
Version: 0.6.1
Version: 0.6.2
Author: pfefferle
Author URI: http://notizblog.org/
*/
Expand All @@ -14,18 +14,6 @@
* @author Matthias Pfefferle
*/
class WellKnownPlugin {
/**
* constructor
*/
public function __construct() {
add_filter('query_vars', array($this, 'query_vars'));
add_action('parse_request', array($this, 'delegate_request'));
add_action('generate_rewrite_rules', array($this, 'rewrite_rules'));
add_action('admin_init', 'flush_rewrite_rules');

register_activation_hook(__FILE__, 'flush_rewrite_rules');
register_deactivation_hook(__FILE__, 'flush_rewrite_rules');
}

/**
* Add 'well-known' as a valid query variables.
Expand Down Expand Up @@ -67,4 +55,9 @@ public function delegate_request($wp) {
}
}

new WellKnownPlugin;
add_filter('query_vars', array('WellKnownPlugin', 'query_vars'));
add_action('parse_request', array('WellKnownPlugin', 'delegate_request'));
add_action('generate_rewrite_rules', array('WellKnownPlugin', 'rewrite_rules'));

register_activation_hook(__FILE__, 'flush_rewrite_rules');
register_deactivation_hook(__FILE__, 'flush_rewrite_rules');
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://www.14101978.de
Tags: OpenID, XRD, well-known, XML, Discovery
Requires at least: 3.5.1
Tested up to: 3.2
Stable tag: 0.6.0
Stable tag: 0.6.2

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

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

== Changelog ==
= 0.6.1 =
= 0.6.2 =
* bug fix
= 0.6.0 =
* refactored the code
Expand Down

0 comments on commit c1653a6

Please sign in to comment.