Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#15144 closed defect (bug) (invalid)

register_widget_control deprecated, but still referenced in 3.0.1

Reported by: ron-c's profile Ron C Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0.1
Component: General Keywords:
Focuses: Cc:

Description

Turning on WP_DEBUG generates the following when logged in as admin:

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

Change History (3)

#1 @scribu
14 years ago

  • Keywords deprecated removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

That's because the function that outputs the notice is defined in wp-includes/functions.php

Add this code in a file in mu-plugins.php and you'll see where register_sidebar_widget() is actually called from: http://gist.github.com/625748

#2 @scribu
14 years ago

That's the mu-plugins directory in wp-content. Create it if you don't have it already.

#3 @Ron C
14 years ago

I think I get it - it's one of the plugins that is using the wrong function.

Note: See TracTickets for help on using tickets.