Skip to:
Content
Pages
Categories
Search
Top
Bottom

register_sidebar_widget


  • derosion
    Participant

    @derosion

    Hi,

    Was reading through the code and came across wp_register_sidebar_widget(). I notice in the codex it says this at http://codex.wordpress.org/Plugins/WordPress_Widgets_Api

    “The WordPress widget API is located in wp-includes/widgets.php. It is advised to not use the functions starting with wp_ as these could change in subsequent releases. This is why we use register_sidebar_widget() instead of wp_register_sidebar_widget().”

    I figure you guys must have a good reason to stick with the wp_ version. Is it because we’re working with MU rather than standard wordpress?

Viewing 1 replies (of 1 total)

  • Jeff Sayre
    Participant

    @jeffsayre

    Derosion-

    Although the WordPress widget API clearly advises developers not to use the widget functions starting with wp_, there is an issue with localization of Widgets in BuddyPress if the register_sidebar_widget() is used.

    If you’re not planning on distributing your custom components or widgets, then you can code them with the register_sidebar_widget() function call instead of wp_register_sidebar_widget(). However, if you plan to make your custom component or widget available to the community, you should use wp_register_sidebar_widget() at this time.

    See Changeset 1244 for more information.

Viewing 1 replies (of 1 total)
  • The topic ‘register_sidebar_widget’ is closed to new replies.
Skip to toolbar