Make WordPress Core


Ignore:
Timestamp:
09/24/2015 07:52:06 PM (10 years ago)
Author:
wonderboymusic
Message:

Widgets: use input[type="number"] for the number prop in the Recent Posts and Recent Comments widget forms.

Props helen, obenland, mordauk.
Fixes #22965.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-recent-comments.php

    r34435 r34514  
    165165
    166166        <p><label for="<?php echo $this->get_field_id( 'number' ); ?>"><?php _e( 'Number of comments to show:' ); ?></label>
    167         <input id="<?php echo $this->get_field_id( 'number' ); ?>" name="<?php echo $this->get_field_name( 'number' ); ?>" type="text" value="<?php echo $number; ?>" size="3" /></p>
     167        <input class="tiny-text" id="<?php echo $this->get_field_id( 'number' ); ?>" name="<?php echo $this->get_field_name( 'number' ); ?>" type="number" step="1" min="1" value="<?php echo $number; ?>" size="3" /></p>
    168168<?php
    169169    }
Note: See TracChangeset for help on using the changeset viewer.