Changeset 8945 for trunk/wp-includes/widgets.php
- Timestamp:
- 09/21/2008 08:57:04 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/widgets.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/widgets.php
r8935 r8945 681 681 function wp_widget_pages_control() { 682 682 $options = $newoptions = get_option('widget_pages'); 683 if ( $_POST['pages-submit']) {683 if ( isset($_POST['pages-submit']) ) { 684 684 $newoptions['title'] = strip_tags(stripslashes($_POST['pages-title'])); 685 685 … … 812 812 function wp_widget_archives_control() { 813 813 $options = $newoptions = get_option('widget_archives'); 814 if ( $_POST["archives-submit"]) {814 if ( isset($_POST["archives-submit"]) ) { 815 815 $newoptions['count'] = isset($_POST['archives-count']); 816 816 $newoptions['dropdown'] = isset($_POST['archives-dropdown']); … … 872 872 function wp_widget_meta_control() { 873 873 $options = $newoptions = get_option('widget_meta'); 874 if ( $_POST["meta-submit"]) {874 if ( isset($_POST["meta-submit"]) ) { 875 875 $newoptions['title'] = strip_tags(stripslashes($_POST["meta-title"])); 876 876 } … … 917 917 function wp_widget_calendar_control() { 918 918 $options = $newoptions = get_option('widget_calendar'); 919 if ( $_POST["calendar-submit"]) {919 if ( isset($_POST["calendar-submit"]) ) { 920 920 $newoptions['title'] = strip_tags(stripslashes($_POST["calendar-title"])); 921 921 } … … 1368 1368 function wp_widget_recent_entries_control() { 1369 1369 $options = $newoptions = get_option('widget_recent_entries'); 1370 if ( $_POST["recent-entries-submit"]) {1370 if ( isset($_POST["recent-entries-submit"]) ) { 1371 1371 $newoptions['title'] = strip_tags(stripslashes($_POST["recent-entries-title"])); 1372 1372 $newoptions['number'] = (int) $_POST["recent-entries-number"]; … … 1451 1451 function wp_widget_recent_comments_control() { 1452 1452 $options = $newoptions = get_option('widget_recent_comments'); 1453 if ( $_POST["recent-comments-submit"]) {1453 if ( isset($_POST["recent-comments-submit"]) ) { 1454 1454 $newoptions['title'] = strip_tags(stripslashes($_POST["recent-comments-title"])); 1455 1455 $newoptions['number'] = (int) $_POST["recent-comments-number"]; … … 1905 1905 $options = $newoptions = get_option('widget_tag_cloud'); 1906 1906 1907 if ( $_POST['tag-cloud-submit']) {1907 if ( isset($_POST['tag-cloud-submit']) ) { 1908 1908 $newoptions['title'] = strip_tags(stripslashes($_POST['tag-cloud-title'])); 1909 1909 }
Note: See TracChangeset
for help on using the changeset viewer.