|
@@ 1082-1087 (lines=6) @@
|
| 1079 |
|
$is_new_item = true; |
| 1080 |
|
} |
| 1081 |
|
|
| 1082 |
|
if ( empty( $_POST ) ) { |
| 1083 |
|
return $post_id; |
| 1084 |
|
} |
| 1085 |
|
elseif ( !$is_new_item && !wp_verify_nonce( pods_v( 'pods_meta', 'post' ), 'pods_meta_post' ) ) { |
| 1086 |
|
return $post_id; |
| 1087 |
|
} |
| 1088 |
|
|
| 1089 |
|
// Reset to avoid manual new post issues |
| 1090 |
|
self::$old_post_status = ''; |
|
@@ 1666-1671 (lines=6) @@
|
| 1663 |
|
$is_new_item = true; |
| 1664 |
|
} |
| 1665 |
|
|
| 1666 |
|
if ( empty( $_POST ) ) { |
| 1667 |
|
return $user_id; |
| 1668 |
|
} |
| 1669 |
|
elseif ( $is_new_item || !wp_verify_nonce( pods_v( 'pods_meta', 'post' ), 'pods_meta_user' ) ) { |
| 1670 |
|
return $user_id; |
| 1671 |
|
} |
| 1672 |
|
|
| 1673 |
|
$groups = $this->groups_get( 'user', 'user' ); |
| 1674 |
|
|
|
@@ 2074-2082 (lines=9) @@
|
| 2071 |
|
public function save_comment ( $comment_id ) { |
| 2072 |
|
$groups = $this->groups_get( 'comment', 'comment' ); |
| 2073 |
|
|
| 2074 |
|
if ( empty( $groups ) ) { |
| 2075 |
|
return $comment_id; |
| 2076 |
|
} |
| 2077 |
|
elseif ( empty( $_POST ) ) { |
| 2078 |
|
return $comment_id; |
| 2079 |
|
} |
| 2080 |
|
elseif ( !wp_verify_nonce( pods_v( 'pods_meta', 'post' ), 'pods_meta_comment' ) ) { |
| 2081 |
|
return $comment_id; |
| 2082 |
|
} |
| 2083 |
|
|
| 2084 |
|
$data = array(); |
| 2085 |
|
|