use number input field instead of textarea

This commit is contained in:
Matthias Pfefferle 2023-01-13 08:56:38 +01:00
parent c06a7d44cf
commit 006b3eef3e

View file

@ -79,7 +79,7 @@
<?php \esc_html_e( 'Number of images', 'activitypub' ); ?>
</th>
<td>
<textarea name="activitypub_max_image_attachments" id="activitypub_max_image_attachments" rows="1" cols="50" class="large-text"><?php echo esc_html( \get_option( 'activitypub_max_image_attachments', ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS ) ); ?></textarea>
<input value="<?php echo esc_attr( \get_option( 'activitypub_max_image_attachments', ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS ) ); ?>" name="activitypub_max_image_attachments" id="activitypub_max_image_attachments" type="number" min="0" />
<p class="description">
<?php
echo \wp_kses(