WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#15144 closed defect (bug) (invalid)

register_widget_control deprecated, but still referenced in 3.0.1

Reported by: 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)

comment:1 scribu4 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

comment:2 scribu4 years ago

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

comment:3 Ron C4 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.