Skip to content

Commit

Permalink
Merge pull request #1235 from publishpress/hotfix-1234-permissions-me…
Browse files Browse the repository at this point in the history
…tabox-not-saved

Permissions metabox value not saved
  • Loading branch information
agapetry authored Nov 14, 2024
2 parents 1ac40e9 + 90cec75 commit b9e18bd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions classes/PublishPress/Permissions/PostSave.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ public static function actSaveItem($item_source, $post_id, $post)
return;
}

global $current_user;
$transient_name = "_saving_post_{$post_id}_{$current_user->ID}";

if (get_transient($transient_name)) {
return;
} else {
set_transient($transient_name, true, 5);
}

$saved_items[$post_id] = 1;

$is_new = self::isNewPost($post_id, $post);
Expand Down

0 comments on commit b9e18bd

Please sign in to comment.