Make WordPress Core


Ignore:
Timestamp:
02/16/2016 11:19:38 PM (9 years ago)
Author:
ocean90
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-widget.php

    r35955 r36541  
    169169     */
    170170    public function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) {
    171         _deprecated_constructor( 'WP_Widget', '4.3.0' );
     171        _deprecated_constructor( 'WP_Widget', '4.3.0', get_class( $this ) );
    172172        WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
    173173    }
Note: See TracChangeset for help on using the changeset viewer.