• While debugging a custom theme I am designing (lives online here for now http://shalaco.com/cp) I got this error in debugging mode.

    Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in /Users/shalaco/Sites/cp/wp-includes/functions.php  on line 3237

    I tried to use wp_register_sidebar_widget() instead, but the function reference left something to be desired.

    Am I missing something here? A lot of the parameters seem to be left unexplained. Is there another place I can dig around to get more information?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    ww.wp.xz.cn Admin

    It’s the same function, just with an ID field in front of it.

    Just add some kind of unique ID as the first parameter.

    Thread Starter shalzers

    (@shalzers)

    Okay, so what if I want to register three sidebar widgets?

    Would this

    if ( function_exists('register_sidebar') )
    	    register_sidebars(3);

    become something like:

    if ( function_exists( 'wp_register_sidebar_widget') )
     				wp_register_sidebar_widget( $id, $name, $output_callback, $options );

    As an aside… am I posting this question in the right forum?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Replacing register_sidebar_widget with wp_register_sidebar_widget()’ is closed to new replies.