mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
Introduce a $parent_class parameter for _deprecated_constructor().
Use the parameter for the deprecated constructor warning in `WP_Widget` to provide an indication to which widget is using the PHP4 style constructor. Props sebastian.pisula. Fixes #33440. git-svn-id: https://develop.svn.wordpress.org/trunk@36541 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -168,7 +168,7 @@ class WP_Widget {
|
||||
* @param array $control_options
|
||||
*/
|
||||
public function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) {
|
||||
_deprecated_constructor( 'WP_Widget', '4.3.0' );
|
||||
_deprecated_constructor( 'WP_Widget', '4.3.0', get_class( $this ) );
|
||||
WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user