Make WordPress Core

Changeset 5367


Ignore:
Timestamp:
05/01/2007 10:52:14 PM (18 years ago)
Author:
ryan
Message:

Remove wp_ prefix from default widget class names. For back compat.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/widgets.php

    r5363 r5367  
    519519        $name = sprintf(__('Text %d'), $i);
    520520        $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);
    522522        register_widget_control($name, $i <= $number ? 'wp_widget_text_control' : /* unregister */ '', 460, 350, $id, $i);
    523523    }
     
    857857        $name = sprintf(__('RSS %d'), $i);
    858858        $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);
    860860        register_widget_control($name, $i <= $number ? 'wp_widget_rss_control' : /* unregister */ '', 410, 200, $id, $i);
    861861    }
     
    869869    $wp_register_widget_defaults = true;
    870870
    871     register_sidebar_widget(__('Pages'), 'wp_widget_pages', null, 'pages');
     871    register_sidebar_widget(__('Pages'), 'wp_widget_pages', 'widget_pages', 'pages');
    872872    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');
    874874    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');
    876876    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');
    879879    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');
    882882    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');
    884884    register_widget_control(__('Recent Posts'), 'wp_widget_recent_entries_control', 300, 90, 'recent-posts');
    885885    wp_widget_text_register();
Note: See TracChangeset for help on using the changeset viewer.