Remove unused vars. Props DD32. see #5418

git-svn-id: https://develop.svn.wordpress.org/trunk@6364 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-12-06 19:49:33 +00:00
parent 029a74ca44
commit 3a8b2fcca3
25 changed files with 366 additions and 494 deletions
+4 -5
View File
@@ -227,7 +227,7 @@ function is_active_widget($callback) {
$sidebars_widgets = wp_get_sidebars_widgets(false);
if ( is_array($sidebars_widgets) ) foreach ( $sidebars_widgets as $sidebar => $widgets )
if ( is_array($sidebars_widgets) ) foreach ( $sidebars_widgets as $widgets )
if ( is_array($widgets) ) foreach ( $widgets as $widget )
if ( $wp_registered_widgets[$widget]['callback'] == $callback )
return true;
@@ -572,7 +572,7 @@ function wp_widget_text_setup() {
}
function wp_widget_text_page() {
$options = $newoptions = get_option('widget_text');
$options = get_option('widget_text');
?>
<div class="wrap">
<form method="POST">
@@ -1005,7 +1005,6 @@ function wp_widget_rss_control($number) {
} else {
$newoptions[$number]['error'] = true;
$newoptions[$number]['url'] = wp_specialchars(__('Error: could not find an RSS or ATOM feed at that URL.'), 1);
$error = sprintf(__('Error in RSS %1$d: %2$s'), $number, $newoptions[$number]['error']);
}
}
}
@@ -1023,7 +1022,7 @@ function wp_widget_rss_control($number) {
<p style="text-align:center;"><?php _e('Give the feed a title (optional):'); ?></p>
<input style="width: 400px;" id="rss-title-<?php echo "$number"; ?>" name="rss-title-<?php echo "$number"; ?>" type="text" value="<?php echo $title; ?>" />
<p style="text-align:center; line-height: 30px;"><?php _e('How many items would you like to display?'); ?> <select id="rss-items-<?php echo $number; ?>" name="rss-items-<?php echo $number; ?>"><?php for ( $i = 1; $i <= 10; ++$i ) echo "<option value='$i' ".($items==$i ? "selected='selected'" : '').">$i</option>"; ?></select></p>
<input type="hidden" id="rss-submit-<?php echo "$number"; ?>" name="rss-submit-<?php echo "$number"; ?>" value="1" />
<input type="hidden" id="rss-submit-<?php echo "$number"; ?>" name="rss-submit-<?php echo $number; ?>" value="1" />
<?php
}
@@ -1043,7 +1042,7 @@ function wp_widget_rss_setup() {
}
function wp_widget_rss_page() {
$options = $newoptions = get_option('widget_rss');
$options = get_option('widget_rss');
?>
<div class="wrap">
<form method="POST">