added comment to explain the protection
This commit is contained in:
@@ -32,6 +32,7 @@ function form_partner_before_process($form_id, $post_array, $form_type) {
|
||||
//nothing to overwrite
|
||||
return Fbpatch::set_post_elements_to_forget(0, false, array());
|
||||
}
|
||||
// if post creation there will not be an ID
|
||||
if (!isset($post_array['ID']) || empty($post_array['ID'])) {
|
||||
//nothing to overwrite
|
||||
return Fbpatch::set_post_elements_to_forget(0, false, array());
|
||||
|
||||
Reference in New Issue
Block a user