Skip to content

Commit

Permalink
fixed broken remote-subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Oct 21, 2008
1 parent 6fe766f commit 5cba70f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/plugins/wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,7 @@ function register_xrd($id, $type=array(), $expires=false) {
$xrd = get_option('xrds_simple');
if(!is_array($xrd)) $xrd = array();
$xrd[$id] = array('type' => $type, 'expires' => $expires, 'services' => array());
update_option('xrds_simple', $xrd);
}//end function register_xrd

/*
Expand All @@ -1292,6 +1293,7 @@ function register_xrd_service($xrd_id, $name, $content, $priority=10) {
$xrd = get_option('xrds_simple');
if(!is_array($xrd[$xrd_id])) register_xrd($xrd_id);
$xrd[$xrd_id]['services'][$name] = array('priority' => $priority, 'content' => $content);
update_option('xrds_simple', $xrd);
}//end register_xrd_service


Expand Down

0 comments on commit 5cba70f

Please sign in to comment.