The called constructor method for WP_Widget is deprecated since version 4.3.0

前端 未结 6 605
一生所求
一生所求 2020-12-13 13:28

I just updated to WordPress 4.3 and it seems that something is broken.

I get this error that shows up on my page:

Notice: The called construct

6条回答
  •  春和景丽
    2020-12-13 14:21

    I experienced this issue and I found by changing the 'true' statement to 'false' in /wp-includes/functions.php it disabled the errors.

    if ( WP_DEBUG && apply_filters( 'deprecated_constructor_trigger_error', true ) ) {

提交回复
热议问题