Ticket #22965: dashboard_comments_number.patch
| File dashboard_comments_number.patch, 807 bytes (added by mordauk, 6 months ago) |
|---|
-
wp-admin/includes/dashboard.php
766 766 $number = isset( $widget_options['dashboard_recent_comments']['items'] ) ? (int) $widget_options['dashboard_recent_comments']['items'] : ''; 767 767 768 768 echo '<p><label for="comments-number">' . __('Number of comments to show:') . '</label>'; 769 echo '<input id="comments-number" name="widget-recent-comments[items]" type="text" value="' . $number . '" size="3" /></p>';769 echo '<input class="small-text" id="comments-number" name="widget-recent-comments[items]" type="number" step="1" min="1" value="' . $number . '" size="3" /></p>'; 770 770 } 771 771 772 772 function wp_dashboard_incoming_links() {