wp_widget_rss_form

The timeline below displays how wordpress function wp_widget_rss_form has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 9.5

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args   Values for input fields.
 * @param array        $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary'] || $inputs['show_author'] || $inputs['show_date']) {
        ?>
	<p>
	<?php 
        if ($inputs['show_summary']) {
            ?>
		<input id="rss-show-summary-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_summary]" type="checkbox" value="1" <?php 
            checked($args['show_summary']);
            ?> />
		<label for="rss-show-summary-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item content?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_author']) {
            ?>
		<input id="rss-show-author-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_author]" type="checkbox" value="1" <?php 
            checked($args['show_author']);
            ?> />
		<label for="rss-show-author-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item author if available?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_date']) {
            ?>
		<input id="rss-show-date-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_date]" type="checkbox" value="1" <?php 
            checked($args['show_date']);
            ?>/>
		<label for="rss-show-date-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item date?');
            ?></label><br />
	<?php 
        }
        ?>
	</p>
	<?php 
    }
    // End of display options.
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 5.9

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args   Values for input fields.
 * @param array        $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary'] || $inputs['show_author'] || $inputs['show_date']) {
        ?>
	<p>
	<?php 
        if ($inputs['show_summary']) {
            ?>
		<input id="rss-show-summary-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_summary]" type="checkbox" value="1" <?php 
            checked($args['show_summary']);
            ?> />
		<label for="rss-show-summary-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item content?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_author']) {
            ?>
		<input id="rss-show-author-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_author]" type="checkbox" value="1" <?php 
            checked($args['show_author']);
            ?> />
		<label for="rss-show-author-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item author if available?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_date']) {
            ?>
		<input id="rss-show-date-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_date]" type="checkbox" value="1" <?php 
            checked($args['show_date']);
            ?>/>
		<label for="rss-show-date-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item date?');
            ?></label><br />
	<?php 
        }
        ?>
	</p>
	<?php 
    }
    // End of display options.
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 8.6

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args   Values for input fields.
 * @param array        $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary'] || $inputs['show_author'] || $inputs['show_date']) {
        ?>
	<p>
	<?php 
        if ($inputs['show_summary']) {
            ?>
		<input id="rss-show-summary-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_summary]" type="checkbox" value="1" <?php 
            checked($args['show_summary']);
            ?> />
		<label for="rss-show-summary-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item content?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_author']) {
            ?>
		<input id="rss-show-author-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_author]" type="checkbox" value="1" <?php 
            checked($args['show_author']);
            ?> />
		<label for="rss-show-author-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item author if available?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_date']) {
            ?>
		<input id="rss-show-date-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_date]" type="checkbox" value="1" <?php 
            checked($args['show_date']);
            ?>/>
		<label for="rss-show-date-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item date?');
            ?></label><br />
	<?php 
        }
        ?>
	</p>
	<?php 
    }
    // End of display options.
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 5.8

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args   Values for input fields.
 * @param array        $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary'] || $inputs['show_author'] || $inputs['show_date']) {
        ?>
	<p>
	<?php 
        if ($inputs['show_summary']) {
            ?>
		<input id="rss-show-summary-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_summary]" type="checkbox" value="1" <?php 
            checked($args['show_summary']);
            ?> />
		<label for="rss-show-summary-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item content?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_author']) {
            ?>
		<input id="rss-show-author-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_author]" type="checkbox" value="1" <?php 
            checked($args['show_author']);
            ?> />
		<label for="rss-show-author-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item author if available?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_date']) {
            ?>
		<input id="rss-show-date-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_date]" type="checkbox" value="1" <?php 
            checked($args['show_date']);
            ?>/>
		<label for="rss-show-date-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item date?');
            ?></label><br />
	<?php 
        }
        ?>
	</p>
	<?php 
    }
    // End of display options.
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 7.8

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args   Values for input fields.
 * @param array        $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary'] || $inputs['show_author'] || $inputs['show_date']) {
        ?>
	<p>
	<?php 
        if ($inputs['show_summary']) {
            ?>
		<input id="rss-show-summary-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_summary]" type="checkbox" value="1" <?php 
            checked($args['show_summary']);
            ?> />
		<label for="rss-show-summary-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item content?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_author']) {
            ?>
		<input id="rss-show-author-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_author]" type="checkbox" value="1" <?php 
            checked($args['show_author']);
            ?> />
		<label for="rss-show-author-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item author if available?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_date']) {
            ?>
		<input id="rss-show-date-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_date]" type="checkbox" value="1" <?php 
            checked($args['show_date']);
            ?>/>
		<label for="rss-show-date-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item date?');
            ?></label><br />
	<?php 
        }
        ?>
	</p>
	<?php 
    }
    // End of display options.
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 7.2

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args   Values for input fields.
 * @param array        $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary'] || $inputs['show_author'] || $inputs['show_date']) {
        ?>
	<p>
	<?php 
        if ($inputs['show_summary']) {
            ?>
		<input id="rss-show-summary-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_summary]" type="checkbox" value="1" <?php 
            checked($args['show_summary']);
            ?> />
		<label for="rss-show-summary-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item content?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_author']) {
            ?>
		<input id="rss-show-author-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_author]" type="checkbox" value="1" <?php 
            checked($args['show_author']);
            ?> />
		<label for="rss-show-author-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item author if available?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_date']) {
            ?>
		<input id="rss-show-date-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_date]" type="checkbox" value="1" <?php 
            checked($args['show_date']);
            ?>/>
		<label for="rss-show-date-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item date?');
            ?></label><br />
	<?php 
        }
        ?>
	</p>
	<?php 
    }
    // End of display options.
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: .10

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args   Values for input fields.
 * @param array        $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary'] || $inputs['show_author'] || $inputs['show_date']) {
        ?>
	<p>
	<?php 
        if ($inputs['show_summary']) {
            ?>
		<input id="rss-show-summary-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_summary]" type="checkbox" value="1" <?php 
            checked($args['show_summary']);
            ?> />
		<label for="rss-show-summary-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item content?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_author']) {
            ?>
		<input id="rss-show-author-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_author]" type="checkbox" value="1" <?php 
            checked($args['show_author']);
            ?> />
		<label for="rss-show-author-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item author if available?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_date']) {
            ?>
		<input id="rss-show-date-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_date]" type="checkbox" value="1" <?php 
            checked($args['show_date']);
            ?>/>
		<label for="rss-show-date-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item date?');
            ?></label><br />
	<?php 
        }
        ?>
	</p>
	<?php 
    }
    // End of display options.
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 6.2

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args   Values for input fields.
 * @param array        $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary'] || $inputs['show_author'] || $inputs['show_date']) {
        ?>
	<p>
	<?php 
        if ($inputs['show_summary']) {
            ?>
		<input id="rss-show-summary-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_summary]" type="checkbox" value="1" <?php 
            checked($args['show_summary']);
            ?> />
		<label for="rss-show-summary-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item content?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_author']) {
            ?>
		<input id="rss-show-author-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_author]" type="checkbox" value="1" <?php 
            checked($args['show_author']);
            ?> />
		<label for="rss-show-author-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item author if available?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_date']) {
            ?>
		<input id="rss-show-date-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_date]" type="checkbox" value="1" <?php 
            checked($args['show_date']);
            ?>/>
		<label for="rss-show-date-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item date?');
            ?></label><br />
	<?php 
        }
        ?>
	</p>
	<?php 
    }
    // End of display options.
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: .10

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args   Values for input fields.
 * @param array        $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary'] || $inputs['show_author'] || $inputs['show_date']) {
        ?>
	<p>
	<?php 
        if ($inputs['show_summary']) {
            ?>
		<input id="rss-show-summary-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_summary]" type="checkbox" value="1" <?php 
            checked($args['show_summary']);
            ?> />
		<label for="rss-show-summary-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item content?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_author']) {
            ?>
		<input id="rss-show-author-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_author]" type="checkbox" value="1" <?php 
            checked($args['show_author']);
            ?> />
		<label for="rss-show-author-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item author if available?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_date']) {
            ?>
		<input id="rss-show-date-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_date]" type="checkbox" value="1" <?php 
            checked($args['show_date']);
            ?>/>
		<label for="rss-show-date-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item date?');
            ?></label><br />
	<?php 
        }
        ?>
	</p>
	<?php 
    }
    // End of display options.
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 5.2

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args   Values for input fields.
 * @param array        $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary'] || $inputs['show_author'] || $inputs['show_date']) {
        ?>
	<p>
	<?php 
        if ($inputs['show_summary']) {
            ?>
		<input id="rss-show-summary-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_summary]" type="checkbox" value="1" <?php 
            checked($args['show_summary']);
            ?> />
		<label for="rss-show-summary-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item content?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_author']) {
            ?>
		<input id="rss-show-author-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_author]" type="checkbox" value="1" <?php 
            checked($args['show_author']);
            ?> />
		<label for="rss-show-author-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item author if available?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_date']) {
            ?>
		<input id="rss-show-date-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_date]" type="checkbox" value="1" <?php 
            checked($args['show_date']);
            ?>/>
		<label for="rss-show-date-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item date?');
            ?></label><br />
	<?php 
        }
        ?>
	</p>
	<?php 
    }
    // End of display options.
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: .11

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args   Values for input fields.
 * @param array        $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary'] || $inputs['show_author'] || $inputs['show_date']) {
        ?>
	<p>
	<?php 
        if ($inputs['show_summary']) {
            ?>
		<input id="rss-show-summary-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_summary]" type="checkbox" value="1" <?php 
            checked($args['show_summary']);
            ?> />
		<label for="rss-show-summary-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item content?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_author']) {
            ?>
		<input id="rss-show-author-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_author]" type="checkbox" value="1" <?php 
            checked($args['show_author']);
            ?> />
		<label for="rss-show-author-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item author if available?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_date']) {
            ?>
		<input id="rss-show-date-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_date]" type="checkbox" value="1" <?php 
            checked($args['show_date']);
            ?>/>
		<label for="rss-show-date-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item date?');
            ?></label><br />
	<?php 
        }
        ?>
	</p>
	<?php 
    }
    // End of display options.
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 5.5

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args   Values for input fields.
 * @param array        $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary'] || $inputs['show_author'] || $inputs['show_date']) {
        ?>
	<p>
	<?php 
        if ($inputs['show_summary']) {
            ?>
		<input id="rss-show-summary-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_summary]" type="checkbox" value="1" <?php 
            checked($args['show_summary']);
            ?> />
		<label for="rss-show-summary-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item content?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_author']) {
            ?>
		<input id="rss-show-author-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_author]" type="checkbox" value="1" <?php 
            checked($args['show_author']);
            ?> />
		<label for="rss-show-author-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item author if available?');
            ?></label><br />
	<?php 
        }
        if ($inputs['show_date']) {
            ?>
		<input id="rss-show-date-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][show_date]" type="checkbox" value="1" <?php 
            checked($args['show_date']);
            ?>/>
		<label for="rss-show-date-<?php 
            echo $esc_number;
            ?>"><?php 
            _e('Display item date?');
            ?></label><br />
	<?php 
        }
        ?>
	</p>
	<?php 
    }
    // End of display options.
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 4.2

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
	<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: .12

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
	<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 3.2

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
	<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: .14

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
	<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 2.3

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
	<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: .20

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
	<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 2.2

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
	<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: .17

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
	<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 1.2

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
	<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: .15

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
	<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 5.1

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
	<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
		<?php 
        }
    }
}

WordPress Version: 0.3

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: .20

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: 0.2

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: .18

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: 9.3

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: .22

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . esc_html($args['error']) . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: 4.7

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . __('RSS Error:') . '</strong> ' . $args['error'] . '</p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: 6.3

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $args['error']) . '</strong></p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: .25

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), esc_html($args['error'])) . '</strong></p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: 5.4

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $args['error']) . '</strong></p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: .30

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), esc_html($args['error'])) . '</strong></p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: 5.3

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $args['error']) . '</strong></p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: .28

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), esc_html($args['error'])) . '</strong></p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: 4.4

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $args['error']) . '</strong></p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: .30

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), esc_html($args['error'])) . '</strong></p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: 4.3

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $args['error']) . '</strong></p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: .29

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), esc_html($args['error'])) . '</strong></p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: 4.4

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['title'] = isset($args['title']) ? $args['title'] : '';
    $args['url'] = isset($args['url']) ? $args['url'] : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $args['error']) . '</strong></p>';
    }
    $esc_number = esc_attr($args['number']);
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][url]" type="text" value="<?php 
        echo esc_url($args['url']);
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][title]" type="text" value="<?php 
        echo esc_attr($args['title']);
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][items]">
	<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $esc_number;
        ?>" name="widget-rss[<?php 
        echo $esc_number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $esc_number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo esc_attr($id);
            ?>-<?php 
            echo $esc_number;
            ?>" name="widget-rss[<?php 
            echo $esc_number;
            ?>][<?php 
            echo esc_attr($input);
            ?>]" value="<?php 
            echo esc_attr($args[$input]);
            ?>" />
<?php 
        }
    }
}

WordPress Version: 3.4

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['number'] = esc_attr($args['number']);
    $args['title'] = isset($args['title']) ? esc_attr($args['title']) : '';
    $args['url'] = isset($args['url']) ? esc_url($args['url']) : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $args['error']) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][url]" type="text" value="<?php 
        echo $args['url'];
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][title]" type="text" value="<?php 
        echo $args['title'];
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $args['number'];
            ?>" name="widget-rss[<?php 
            echo $args['number'];
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo $args[$input];
            ?>" />
<?php 
        }
    }
}

WordPress Version: .30

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['number'] = esc_attr($args['number']);
    $args['title'] = isset($args['title']) ? esc_attr($args['title']) : '';
    $args['url'] = isset($args['url']) ? esc_url($args['url']) : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), esc_html($args['error'])) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][url]" type="text" value="<?php 
        echo $args['url'];
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][title]" type="text" value="<?php 
        echo $args['title'];
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $args['number'];
            ?>" name="widget-rss[<?php 
            echo $args['number'];
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo $args[$input];
            ?>" />
<?php 
        }
    }
}

WordPress Version: 2.4

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['number'] = esc_attr($args['number']);
    $args['title'] = isset($args['title']) ? esc_attr($args['title']) : '';
    $args['url'] = isset($args['url']) ? esc_url($args['url']) : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $args['error']) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][url]" type="text" value="<?php 
        echo $args['url'];
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][title]" type="text" value="<?php 
        echo $args['title'];
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $args['number'];
            ?>" name="widget-rss[<?php 
            echo $args['number'];
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo $args[$input];
            ?>" />
<?php 
        }
    }
}

WordPress Version: .34

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['number'] = esc_attr($args['number']);
    $args['title'] = isset($args['title']) ? esc_attr($args['title']) : '';
    $args['url'] = isset($args['url']) ? esc_url($args['url']) : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), esc_html($args['error'])) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][url]" type="text" value="<?php 
        echo $args['url'];
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][title]" type="text" value="<?php 
        echo $args['title'];
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $args['number'];
            ?>" name="widget-rss[<?php 
            echo $args['number'];
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo $args[$input];
            ?>" />
<?php 
        }
    }
}

WordPress Version: 1.5

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['number'] = esc_attr($args['number']);
    $args['title'] = isset($args['title']) ? esc_attr($args['title']) : '';
    $args['url'] = isset($args['url']) ? esc_url($args['url']) : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $args['error']) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][url]" type="text" value="<?php 
        echo $args['url'];
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][title]" type="text" value="<?php 
        echo $args['title'];
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $args['number'];
            ?>" name="widget-rss[<?php 
            echo $args['number'];
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo $args[$input];
            ?>" />
<?php 
        }
    }
}

WordPress Version: .40

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['number'] = esc_attr($args['number']);
    $args['title'] = isset($args['title']) ? esc_attr($args['title']) : '';
    $args['url'] = isset($args['url']) ? esc_url($args['url']) : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), esc_html($args['error'])) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][url]" type="text" value="<?php 
        echo $args['url'];
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][title]" type="text" value="<?php 
        echo $args['title'];
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $args['number'];
            ?>" name="widget-rss[<?php 
            echo $args['number'];
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo $args[$input];
            ?>" />
<?php 
        }
    }
}

WordPress Version: 1.4

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['number'] = esc_attr($args['number']);
    $args['title'] = isset($args['title']) ? esc_attr($args['title']) : '';
    $args['url'] = isset($args['url']) ? esc_url($args['url']) : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $args['error']) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][url]" type="text" value="<?php 
        echo $args['url'];
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][title]" type="text" value="<?php 
        echo $args['title'];
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $args['number'];
            ?>" name="widget-rss[<?php 
            echo $args['number'];
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo $args[$input];
            ?>" />
<?php 
        }
    }
}

WordPress Version: .37

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['number'] = esc_attr($args['number']);
    $args['title'] = isset($args['title']) ? esc_attr($args['title']) : '';
    $args['url'] = isset($args['url']) ? esc_url($args['url']) : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), esc_html($args['error'])) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][url]" type="text" value="<?php 
        echo $args['url'];
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][title]" type="text" value="<?php 
        echo $args['title'];
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $args['number'];
            ?>" name="widget-rss[<?php 
            echo $args['number'];
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo $args[$input];
            ?>" />
<?php 
        }
    }
}

WordPress Version: 0.4

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['number'] = esc_attr($args['number']);
    $args['title'] = isset($args['title']) ? esc_attr($args['title']) : '';
    $args['url'] = isset($args['url']) ? esc_url($args['url']) : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $args['error']) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][url]" type="text" value="<?php 
        echo $args['url'];
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][title]" type="text" value="<?php 
        echo $args['title'];
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $args['number'];
            ?>" name="widget-rss[<?php 
            echo $args['number'];
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo $args[$input];
            ?>" />
<?php 
        }
    }
}

WordPress Version: .37

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['number'] = esc_attr($args['number']);
    $args['title'] = isset($args['title']) ? esc_attr($args['title']) : '';
    $args['url'] = isset($args['url']) ? esc_url($args['url']) : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), esc_html($args['error'])) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][url]" type="text" value="<?php 
        echo $args['url'];
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][title]" type="text" value="<?php 
        echo $args['title'];
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $args['number'];
            ?>" name="widget-rss[<?php 
            echo $args['number'];
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo $args[$input];
            ?>" />
<?php 
        }
    }
}

WordPress Version: 4.0

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    $args['number'] = esc_attr($args['number']);
    $args['title'] = isset($args['title']) ? esc_attr($args['title']) : '';
    $args['url'] = isset($args['url']) ? esc_url($args['url']) : '';
    $args['items'] = isset($args['items']) ? (int) $args['items'] : 0;
    if ($args['items'] < 1 || 20 < $args['items']) {
        $args['items'] = 10;
    }
    $args['show_summary'] = isset($args['show_summary']) ? (int) $args['show_summary'] : (int) $inputs['show_summary'];
    $args['show_author'] = isset($args['show_author']) ? (int) $args['show_author'] : (int) $inputs['show_author'];
    $args['show_date'] = isset($args['show_date']) ? (int) $args['show_date'] : (int) $inputs['show_date'];
    if (!empty($args['error'])) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $args['error']) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][url]" type="text" value="<?php 
        echo $args['url'];
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][title]" type="text" value="<?php 
        echo $args['title'];
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($args['items'], $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_summary]" type="checkbox" value="1" <?php 
        checked($args['show_summary']);
        ?> />
	<label for="rss-show-summary-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_author]" type="checkbox" value="1" <?php 
        checked($args['show_author']);
        ?> />
	<label for="rss-show-author-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $args['number'];
        ?>" name="widget-rss[<?php 
        echo $args['number'];
        ?>][show_date]" type="checkbox" value="1" <?php 
        checked($args['show_date']);
        ?>/>
	<label for="rss-show-date-<?php 
        echo $args['number'];
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $args['number'];
            ?>" name="widget-rss[<?php 
            echo $args['number'];
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo $args[$input];
            ?>" />
<?php 
        }
    }
}

WordPress Version: 7.5

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    extract($args);
    extract($inputs, EXTR_SKIP);
    $number = esc_attr($number);
    $title = esc_attr($title);
    $url = esc_url($url);
    $items = (int) $items;
    if ($items < 1 || 20 < $items) {
        $items = 10;
    }
    $show_summary = (int) $show_summary;
    $show_author = (int) $show_author;
    $show_date = (int) $show_date;
    if (!empty($error)) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $error) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][url]" type="text" value="<?php 
        echo $url;
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][title]" type="text" value="<?php 
        echo $title;
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($items, $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        if ($show_summary) {
            echo 'checked="checked"';
        }
        ?>/>
	<label for="rss-show-summary-<?php 
        echo $number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        if ($show_author) {
            echo 'checked="checked"';
        }
        ?>/>
	<label for="rss-show-author-<?php 
        echo $number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        if ($show_date) {
            echo 'checked="checked"';
        }
        ?>/>
	<label for="rss-show-date-<?php 
        echo $number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $number;
            ?>" name="widget-rss[<?php 
            echo $number;
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo ${$input};
            ?>" />
<?php 
        }
    }
}

WordPress Version: .40

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    extract($args);
    extract($inputs, EXTR_SKIP);
    $number = esc_attr($number);
    $title = esc_attr($title);
    $url = esc_url($url);
    $items = (int) $items;
    if ($items < 1 || 20 < $items) {
        $items = 10;
    }
    $show_summary = (int) $show_summary;
    $show_author = (int) $show_author;
    $show_date = (int) $show_date;
    if (!empty($error)) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), esc_html($error)) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][url]" type="text" value="<?php 
        echo $url;
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][title]" type="text" value="<?php 
        echo $title;
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($items, $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        if ($show_summary) {
            echo 'checked="checked"';
        }
        ?>/>
	<label for="rss-show-summary-<?php 
        echo $number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        if ($show_author) {
            echo 'checked="checked"';
        }
        ?>/>
	<label for="rss-show-author-<?php 
        echo $number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        if ($show_date) {
            echo 'checked="checked"';
        }
        ?>/>
	<label for="rss-show-date-<?php 
        echo $number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $number;
            ?>" name="widget-rss[<?php 
            echo $number;
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo ${$input};
            ?>" />
<?php 
        }
    }
}

WordPress Version: 3.7

/**
 * Display RSS widget options form.
 *
 * The options for what fields are displayed for the RSS form are all booleans
 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author',
 * 'show_date'.
 *
 * @since 2.5.0
 *
 * @param array|string $args Values for input fields.
 * @param array $inputs Override default display options.
 */
function wp_widget_rss_form($args, $inputs = null)
{
    $default_inputs = array('url' => true, 'title' => true, 'items' => true, 'show_summary' => true, 'show_author' => true, 'show_date' => true);
    $inputs = wp_parse_args($inputs, $default_inputs);
    extract($args);
    extract($inputs, EXTR_SKIP);
    $number = esc_attr($number);
    $title = esc_attr($title);
    $url = esc_url($url);
    $items = (int) $items;
    if ($items < 1 || 20 < $items) {
        $items = 10;
    }
    $show_summary = (int) $show_summary;
    $show_author = (int) $show_author;
    $show_date = (int) $show_date;
    if (!empty($error)) {
        echo '<p class="widget-error"><strong>' . sprintf(__('RSS Error: %s'), $error) . '</strong></p>';
    }
    if ($inputs['url']) {
        ?>
	<p><label for="rss-url-<?php 
        echo $number;
        ?>"><?php 
        _e('Enter the RSS feed URL here:');
        ?></label>
	<input class="widefat" id="rss-url-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][url]" type="text" value="<?php 
        echo $url;
        ?>" /></p>
<?php 
    }
    if ($inputs['title']) {
        ?>
	<p><label for="rss-title-<?php 
        echo $number;
        ?>"><?php 
        _e('Give the feed a title (optional):');
        ?></label>
	<input class="widefat" id="rss-title-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][title]" type="text" value="<?php 
        echo $title;
        ?>" /></p>
<?php 
    }
    if ($inputs['items']) {
        ?>
	<p><label for="rss-items-<?php 
        echo $number;
        ?>"><?php 
        _e('How many items would you like to display?');
        ?></label>
	<select id="rss-items-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][items]">
<?php 
        for ($i = 1; $i <= 20; ++$i) {
            echo "<option value='{$i}' " . selected($items, $i, false) . ">{$i}</option>";
        }
        ?>
	</select></p>
<?php 
    }
    if ($inputs['show_summary']) {
        ?>
	<p><input id="rss-show-summary-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][show_summary]" type="checkbox" value="1" <?php 
        if ($show_summary) {
            echo 'checked="checked"';
        }
        ?>/>
	<label for="rss-show-summary-<?php 
        echo $number;
        ?>"><?php 
        _e('Display item content?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_author']) {
        ?>
	<p><input id="rss-show-author-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][show_author]" type="checkbox" value="1" <?php 
        if ($show_author) {
            echo 'checked="checked"';
        }
        ?>/>
	<label for="rss-show-author-<?php 
        echo $number;
        ?>"><?php 
        _e('Display item author if available?');
        ?></label></p>
<?php 
    }
    if ($inputs['show_date']) {
        ?>
	<p><input id="rss-show-date-<?php 
        echo $number;
        ?>" name="widget-rss[<?php 
        echo $number;
        ?>][show_date]" type="checkbox" value="1" <?php 
        if ($show_date) {
            echo 'checked="checked"';
        }
        ?>/>
	<label for="rss-show-date-<?php 
        echo $number;
        ?>"><?php 
        _e('Display item date?');
        ?></label></p>
<?php 
    }
    foreach (array_keys($default_inputs) as $input) {
        if ('hidden' === $inputs[$input]) {
            $id = str_replace('_', '-', $input);
            ?>
	<input type="hidden" id="rss-<?php 
            echo $id;
            ?>-<?php 
            echo $number;
            ?>" name="widget-rss[<?php 
            echo $number;
            ?>][<?php 
            echo $input;
            ?>]" value="<?php 
            echo ${$input};
            ?>" />
<?php 
        }
    }
}