Pledge Form: Don't show logo upload field in wp-admin

In wp-admin, the logo should be managed with the featured image UI.
This commit is contained in:
Kelly Dwan 2019-10-28 13:33:44 -04:00
parent f9d4a0bd59
commit 2ec665bcbb
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -19,22 +19,19 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
/> />
</div> </div>
<div class="form-field form-field__logo"> <?php if ( ! is_admin() ) : ?>
<label for="5ftf-org-logo"> <div class="form-field form-field__logo">
<?php esc_html_e( 'Logo', 'wordpressorg' ); ?> <label for="5ftf-org-logo">
</label> <?php esc_html_e( 'Logo', 'wordpressorg' ); ?>
<br /> </label>
<?php if ( is_admin() && has_post_thumbnail() ) : ?> <br />
<div class="form-field__logo-display"> <input
<?php the_post_thumbnail(); ?> type="file"
</div> id="5ftf-org-logo"
<?php endif; ?> name="org-logo"
<input />
type="file" </div>
id="5ftf-org-logo" <?php endif; ?>
name="org-logo"
/>
</div>
<div class="form-field"> <div class="form-field">
<label for="5ftf-org-url"> <label for="5ftf-org-url">