Changeset 5367
- Timestamp:
- 05/01/2007 10:52:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/wp-includes/widgets.php
r5363 r5367 519 519 $name = sprintf(__('Text %d'), $i); 520 520 $id = "text-$i"; // Never never never translate an id 521 register_sidebar_widget($name, $i <= $number ? 'wp_widget_text' : /* unregister */ '', null, $id, $i);521 register_sidebar_widget($name, $i <= $number ? 'wp_widget_text' : /* unregister */ '', 'widget_text', $id, $i); 522 522 register_widget_control($name, $i <= $number ? 'wp_widget_text_control' : /* unregister */ '', 460, 350, $id, $i); 523 523 } … … 857 857 $name = sprintf(__('RSS %d'), $i); 858 858 $id = "rss-$i"; // Never never never translate an id 859 register_sidebar_widget($name, $i <= $number ? 'wp_widget_rss' : /* unregister */ '', null, $id, $i);859 register_sidebar_widget($name, $i <= $number ? 'wp_widget_rss' : /* unregister */ '', 'widget_rss', $id, $i); 860 860 register_widget_control($name, $i <= $number ? 'wp_widget_rss_control' : /* unregister */ '', 410, 200, $id, $i); 861 861 } … … 869 869 $wp_register_widget_defaults = true; 870 870 871 register_sidebar_widget(__('Pages'), 'wp_widget_pages', null, 'pages');871 register_sidebar_widget(__('Pages'), 'wp_widget_pages', 'widget_pages', 'pages'); 872 872 register_widget_control(__('Pages'), 'wp_widget_pages_control', 300, 90, 'pages'); 873 register_sidebar_widget(__('Calendar'), 'wp_widget_calendar', null, 'calendar');873 register_sidebar_widget(__('Calendar'), 'wp_widget_calendar', 'widget_calendar', 'calendar'); 874 874 register_widget_control(__('Calendar'), 'wp_widget_calendar_control', 300, 90, 'calendar'); 875 register_sidebar_widget(__('Archives'), 'wp_widget_archives', null, 'archives');875 register_sidebar_widget(__('Archives'), 'wp_widget_archives', 'widget_archives', 'archives'); 876 876 register_widget_control(__('Archives'), 'wp_widget_archives_control', 300, 100, 'archives'); 877 register_sidebar_widget(__('Links'), 'wp_widget_links', null, 'links');878 register_sidebar_widget(__('Meta'), 'wp_widget_meta', null, 'meta');877 register_sidebar_widget(__('Links'), 'wp_widget_links', 'widget_links', 'links'); 878 register_sidebar_widget(__('Meta'), 'wp_widget_meta', 'widget_meta', 'meta'); 879 879 register_widget_control(__('Meta'), 'wp_widget_meta_control', 300, 90, 'meta'); 880 register_sidebar_widget(__('Search'), 'wp_widget_search', null, 'search');881 register_sidebar_widget(__('Categories'), 'wp_widget_categories', null, 'categories');880 register_sidebar_widget(__('Search'), 'wp_widget_search', 'widget_search', 'search'); 881 register_sidebar_widget(__('Categories'), 'wp_widget_categories', 'widget_categories', 'categories'); 882 882 register_widget_control(__('Categories'), 'wp_widget_categories_control', 300, 150, 'categories'); 883 register_sidebar_widget(__('Recent Posts'), 'wp_widget_recent_entries', null, 'recent-posts');883 register_sidebar_widget(__('Recent Posts'), 'wp_widget_recent_entries', 'widget_recent_entries', 'recent-posts'); 884 884 register_widget_control(__('Recent Posts'), 'wp_widget_recent_entries_control', 300, 90, 'recent-posts'); 885 885 wp_widget_text_register();
Note: See TracChangeset
for help on using the changeset viewer.