Make WordPress Core

Ticket #33440: 33440.diff

File 33440.diff, 551 bytes (added by McGuive7, 9 years ago)

Switch out static text in _deprecated_constructor() calls to dynamically generated class name of actual widget generating warning

  • wp-includes/widgets.php

     
    173173         * @param array  $control_options
    174174         */
    175175        public function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) {
    176                 _deprecated_constructor( 'WP_Widget', '4.3.0' );
     176                _deprecated_constructor( get_class( $this ), '4.3.0' );
    177177                WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
    178178        }
    179179