Add hooks to allow plugins to extend AtomPub support. Fixes #8827 props znarfor and josephscott.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d66daa8a98
commit
0abd25b516
@ -478,6 +478,8 @@ EOD;
|
|||||||
// this could affect our ability to send back the right headers
|
// this could affect our ability to send back the right headers
|
||||||
@wp_set_post_categories($postID, $post_category);
|
@wp_set_post_categories($postID, $post_category);
|
||||||
|
|
||||||
|
do_action( 'atompub_create_post', $postID, $entry );
|
||||||
|
|
||||||
$output = $this->get_entry($postID);
|
$output = $this->get_entry($postID);
|
||||||
|
|
||||||
log_app('function',"create_post($postID)");
|
log_app('function',"create_post($postID)");
|
||||||
@ -556,6 +558,8 @@ EOD;
|
|||||||
$this->internal_error(__('For some strange yet very annoying reason, this post could not be edited.'));
|
$this->internal_error(__('For some strange yet very annoying reason, this post could not be edited.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_action( 'atompub_put_post', $ID, $parsed );
|
||||||
|
|
||||||
log_app('function',"put_post($postID)");
|
log_app('function',"put_post($postID)");
|
||||||
$this->ok();
|
$this->ok();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user