Skip to content

Commit

Permalink
bug fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Feb 13, 2013
1 parent 32e1bea commit 314b0d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
22 changes: 6 additions & 16 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.0
Version: 0.6.1
Author: pfefferle
Author URI: http://notizblog.org/
*/
Expand All @@ -14,26 +14,17 @@
* @author Matthias Pfefferle
*/
class WellKnownPlugin {

/**
* constructor
*/
public function __construct() {
add_action('init', array($this, 'init'));

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

/**
* Initialize the plugin, registering WordPess hooks.
*/
public function init() {
load_plugin_textdomain('wellknown', null, basename(dirname( __FILE__ )));

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');
}

/**
Expand Down Expand Up @@ -67,7 +58,6 @@ public function rewrite_rules($wp_rewrite) {
* @param WP $wp
*/
public function delegate_request($wp) {

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

Expand All @@ -77,4 +67,4 @@ public function delegate_request($wp) {
}
}

new WellKnownPlugin();
new WellKnownPlugin;
2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ From the RFC:
sites' URI space.

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

0 comments on commit 314b0d6

Please sign in to comment.