Re-enable logo validation

It was disabled for testing, and I forgot and committed it. 🤦
This commit is contained in:
Corey McKrill 2019-10-29 17:22:11 -07:00
parent 14109a1b3e
commit 454962522d
No known key found for this signature in database
GPG key ID: C2C0746F7BF17E38

View file

@ -76,7 +76,7 @@ function process_form_new() {
$logo_attachment_id = upload_image( $_FILES['org-logo'] );
if ( is_wp_error( $logo_attachment_id ) ) {
//return $logo_attachment_id;
return $logo_attachment_id;
}
$name = sanitize_meta(
@ -95,11 +95,11 @@ function process_form_new() {
Contributor\add_pledge_contributors( $new_pledge_id, $contributors );
// Attach logo to the pledge.
/*wp_update_post( array(
wp_update_post( array(
'ID' => $logo_attachment_id,
'post_parent' => $new_pledge_id,
) );
set_post_thumbnail( $new_pledge_id, $logo_attachment_id );*/
set_post_thumbnail( $new_pledge_id, $logo_attachment_id );
return $new_pledge_id;
}