WordPress.org

Make WordPress Core

Ticket #32480: 32480.2.diff

File 32480.2.diff, 564 bytes (added by welcher, 6 years ago)

Updating to remove testing line in default-widgets.php

  • 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                _doing_it_wrong( 'WP_Widget', esc_html__( 'This is a PHP4 style constructor, please use __construct instead' ), '4.3' );
    176177                WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
    177178        }
    178179