@@ 1088-1093 (lines=6) @@ | ||
1085 | $is_new_item = true; |
|
1086 | } |
|
1087 | ||
1088 | if ( empty( $_POST ) ) { |
|
1089 | return $post_id; |
|
1090 | } |
|
1091 | elseif ( !$is_new_item && !wp_verify_nonce( pods_v( 'pods_meta', 'post' ), 'pods_meta_post' ) ) { |
|
1092 | return $post_id; |
|
1093 | } |
|
1094 | ||
1095 | // Reset to avoid manual new post issues |
|
1096 | self::$old_post_status = ''; |
|
@@ 1672-1677 (lines=6) @@ | ||
1669 | $is_new_item = true; |
|
1670 | } |
|
1671 | ||
1672 | if ( empty( $_POST ) ) { |
|
1673 | return $user_id; |
|
1674 | } |
|
1675 | elseif ( $is_new_item || !wp_verify_nonce( pods_v( 'pods_meta', 'post' ), 'pods_meta_user' ) ) { |
|
1676 | return $user_id; |
|
1677 | } |
|
1678 | ||
1679 | $groups = $this->groups_get( 'user', 'user' ); |
|
1680 | ||
@@ 2080-2088 (lines=9) @@ | ||
2077 | public function save_comment ( $comment_id ) { |
|
2078 | $groups = $this->groups_get( 'comment', 'comment' ); |
|
2079 | ||
2080 | if ( empty( $groups ) ) { |
|
2081 | return $comment_id; |
|
2082 | } |
|
2083 | elseif ( empty( $_POST ) ) { |
|
2084 | return $comment_id; |
|
2085 | } |
|
2086 | elseif ( !wp_verify_nonce( pods_v( 'pods_meta', 'post' ), 'pods_meta_comment' ) ) { |
|
2087 | return $comment_id; |
|
2088 | } |
|
2089 | ||
2090 | $data = array(); |
|
2091 |