register_widget_control is deprecated since version 2.8
-
Currently receiving this error debugging with
define('WP_DEBUG', true);
Notice: register_widget_control is deprecated since version 2.8! Use wp_register_widget_control() instead. in wordpress/wp-includes/functions.php on line 2638
How I’m handling widgets currently from my
functions.php
file//theme-name widget setup function grayghostvisuals_widget(){ //call register_sidebar wp method as array register_sidebar( array( 'ID' => 'main-widgets', 'name' => 'main', 'before_widget' => '<article id="%1$s" class="widget %2$s">', 'after_widget' => '</article>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ));//end main-sidebars register_sidebar(array( 'ID' => 'footer-widgets', 'name' => 'footer', 'before_widget' => '<article id="%1$s" class="widget %2$s">', 'after_widget' => '</article>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ));//end footer-sidebars }; //trigger the theme-name widget add_action( 'widgets_init' , 'grayghostvisuals_widget' );
footer.php
where my sidebar resides for widget display
<?php if( function_exists( ‘dynamic_sidebar’ ) && dynamic_sidebar( ‘footer’ ) ) : ?>
<?php dynamic_sidebar(‘footer widget’) ?>
<?php endif; ?>Documentation on this is slim so I’m unable to find a resolution to the problem. I’ve found a few questions through the forum but they were closed with no answers displayed for their solution and the Codex for
register_widget_control
is bare.
- The topic ‘register_widget_control is deprecated since version 2.8’ is closed to new replies.