mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 02:53:43 +03:00
Re-enable logo validation
It was disabled for testing, and I forgot and committed it. 🤦
This commit is contained in:
parent
14109a1b3e
commit
454962522d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue