@@ 1142-1147 (lines=6) @@ | ||
1139 | $is_new_item = true; |
|
1140 | } |
|
1141 | ||
1142 | if ( empty( $_POST ) ) { |
|
1143 | return $post_id; |
|
1144 | } |
|
1145 | elseif ( !$is_new_item && !wp_verify_nonce( pods_v( 'pods_meta', 'post' ), 'pods_meta_post' ) ) { |
|
1146 | return $post_id; |
|
1147 | } |
|
1148 | ||
1149 | // Reset to avoid manual new post issues |
|
1150 | self::$old_post_status = ''; |
|
@@ 1784-1789 (lines=6) @@ | ||
1781 | $is_new_item = true; |
|
1782 | } |
|
1783 | ||
1784 | if ( empty( $_POST ) ) { |
|
1785 | return $user_id; |
|
1786 | } |
|
1787 | elseif ( $is_new_item || !wp_verify_nonce( pods_v( 'pods_meta', 'post' ), 'pods_meta_user' ) ) { |
|
1788 | return $user_id; |
|
1789 | } |
|
1790 | ||
1791 | $groups = $this->groups_get( 'user', 'user' ); |
|
1792 | ||
@@ 2192-2200 (lines=9) @@ | ||
2189 | public function save_comment ( $comment_id ) { |
|
2190 | $groups = $this->groups_get( 'comment', 'comment' ); |
|
2191 | ||
2192 | if ( empty( $groups ) ) { |
|
2193 | return $comment_id; |
|
2194 | } |
|
2195 | elseif ( empty( $_POST ) ) { |
|
2196 | return $comment_id; |
|
2197 | } |
|
2198 | elseif ( !wp_verify_nonce( pods_v( 'pods_meta', 'post' ), 'pods_meta_comment' ) ) { |
|
2199 | return $comment_id; |
|
2200 | } |
|
2201 | ||
2202 | $data = array(); |
|
2203 |