@@ 2117-2125 (lines=9) @@ | ||
2114 | public function save_comment ( $comment_id ) { |
|
2115 | $groups = $this->groups_get( 'comment', 'comment' ); |
|
2116 | ||
2117 | if ( empty( $groups ) ) { |
|
2118 | return $comment_id; |
|
2119 | } |
|
2120 | elseif ( empty( $_POST ) ) { |
|
2121 | return $comment_id; |
|
2122 | } |
|
2123 | elseif ( !wp_verify_nonce( pods_v( 'pods_meta', 'post' ), 'pods_meta_comment' ) ) { |
|
2124 | return $comment_id; |
|
2125 | } |
|
2126 | ||
2127 | $data = array(); |
|
2128 | ||
@@ 1125-1130 (lines=6) @@ | ||
1122 | $is_new_item = true; |
|
1123 | } |
|
1124 | ||
1125 | if ( empty( $_POST ) ) { |
|
1126 | return $post_id; |
|
1127 | } |
|
1128 | elseif ( !$is_new_item && !wp_verify_nonce( pods_v( 'pods_meta', 'post' ), 'pods_meta_post' ) ) { |
|
1129 | return $post_id; |
|
1130 | } |
|
1131 | ||
1132 | // Reset to avoid manual new post issues |
|
1133 | self::$old_post_status = ''; |
|
@@ 1709-1714 (lines=6) @@ | ||
1706 | $is_new_item = true; |
|
1707 | } |
|
1708 | ||
1709 | if ( empty( $_POST ) ) { |
|
1710 | return $user_id; |
|
1711 | } |
|
1712 | elseif ( $is_new_item || !wp_verify_nonce( pods_v( 'pods_meta', 'post' ), 'pods_meta_user' ) ) { |
|
1713 | return $user_id; |
|
1714 | } |
|
1715 | ||
1716 | $groups = $this->groups_get( 'user', 'user' ); |
|
1717 |