WordPress.org

Make WordPress Core

Changeset 13519


Ignore:
Timestamp:
03/01/2010 12:09:30 AM (9 years ago)
Author:
nacin
Message:

Boost number of comments allowed in configurable Recent Comments dashboard module. fixes #11891

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r13373 r13519  
    641641    if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset($_POST['widget-recent-comments']) ) {
    642642        $number = (int) stripslashes($_POST['widget-recent-comments']['items']);
    643         if ( $number < 1 || $number > 15 )
     643        if ( $number < 1 || $number > 30 )
    644644            $number = 5;
    645645        $widget_options['dashboard_recent_comments']['items'] = $number;
     
    650650
    651651    echo '<p><label for="comments-number">' . __('Number of comments to show:') . '</label>';
    652     echo '<input id="comments-number" name="widget-recent-comments[items]" type="text" value="' . $number . '" size="3" /> <small>' . __( '(at most 15)' ) . '</small></p>';
     652    echo '<input id="comments-number" name="widget-recent-comments[items]" type="text" value="' . $number . '" size="3" /> <small>' . __( '(at most 30)' ) . '</small></p>';
    653653}
    654654
Note: See TracChangeset for help on using the changeset viewer.