Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter przemo.

    (@przemo-1)

    if ( WP_DEBUG && apply_filters( 'deprecated_constructor_trigger_error', true ) ) {
    		if ( function_exists( '__' ) ) {
    			if ( ! empty( $parent_class ) ) {
    				/* translators: 1: PHP class name, 2: PHP parent class name, 3: version number, 4: __construct() method */
    				trigger_error( sprintf( __( 'The called constructor method for %1$s in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.' ),
    					$class, $parent_class, $version, '
    <pre>__construct()</pre>
    ' ) );
    			} else {
    				/* translators: 1: PHP class name, 2: version number, 3: __construct() method */
    				trigger_error( sprintf( __( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
    					$class, $version, '
    <pre>__construct()</pre>
    ' ) );
    			}
    		} else {
    			if ( ! empty( $parent_class ) ) {
    				trigger_error( sprintf( 'The called constructor method for %1$s in %2$s is <strong>deprecated</strong> since version %3$s! Use %4$s instead.',
    					$class, $parent_class, $version, '
    <pre>__construct()</pre>
    ' ) );
    			} else {
    				trigger_error( sprintf( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.',
    					$class, $version, '
    <pre>__construct()</pre>
    ' ) );
    			}
    		}
    	}

    Line 3718:

    $class, $parent_class, $version, '
    
    <pre>__construct()</pre>
    ' ) );
    Thread Starter przemo.

    (@przemo-1)

    Sorry for the delay

    In Debug mode i have this errors:

    Notice: Called class constructor method WP_Widget in sugarspice_contact_widget is deprecated since version 4.3.0! Instead, use the

    __construct ()

    . /public_html/wp-includes/functions.php on line 3718

    Country: Called class constructor method WP_Widget in sugarspice_about_widget is deprecated since version 4.3.0! Instead, use the

    __construct ()

    . in /public_html/wp-includes/functions.php on line 3718

    Country: Called class constructor method WP_Widget in sugarspice_archives_widget is deprecated since version 4.3.0! Instead, use the

    __construct ()

    . in /public_html/wp-includes/functions.php on line 3718

    Country: Called class constructor method WP_Widget in sugarspice_social_widget is deprecated since version 4.3.0! Instead, use the

    __construct ()

    . in /public_html/wp-includes/functions.php on line 3718

Viewing 2 replies - 1 through 2 (of 2 total)