Skip to content

Commit

Permalink
revisionary_enabled_post_types filter ineffective under some conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
agapetry committed Jul 15, 2020
1 parent f2a308b commit 495eba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion revisionary_main.php
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ function flt_pendingrev_post_status($status) {
}

function flt_maybe_insert_revision($data, $postarr) {
if (!empty($post_arr['post_type']) && empty($this->enabled_post_types[ $post_arr['post_type'] ])) {
if (!empty($postarr['post_type']) && empty($this->enabled_post_types[ $postarr['post_type'] ])) {
return $data;
}

Expand Down

0 comments on commit 495eba7

Please sign in to comment.