Permalink
Browse files

Bugfix / save post controls event should only fire on the ID of the p…

…ost actually in the edit window at the time of the save.
  • Loading branch information...
radgeek committed Jul 18, 2014
1 parent 0ac2a55 commit 17e5ae63b8d32161b2f8592fb15304f1ed56e59e
Showing with 6 additions and 0 deletions.
  1. +6 −0 feedwordpress.php
View
@@ -865,6 +865,12 @@ function feedwordpress_save_post_edit_controls ( $post_id ) {
return $post_id;
endif;
+ // The data in $_POST is for applying only to the post actually
+ // in the edit window, i.e. $post
+ if ($post_id != $post->ID) :
+ return $post_id;
+ endif;
+
// Check permissions
$cap[0] = 'edit_post';
$cap[1] = 'edit_' . $_POST['post_type'];

0 comments on commit 17e5ae6

Please sign in to comment.