@@ 3766-3774 (lines=9) @@ | ||
3763 | */ |
|
3764 | if ( WP_DEBUG && apply_filters( 'deprecated_constructor_trigger_error', true ) ) { |
|
3765 | if ( function_exists( '__' ) ) { |
|
3766 | if ( ! empty( $parent_class ) ) { |
|
3767 | /* translators: 1: PHP class name, 2: PHP parent class name, 3: version number, 4: __construct() method */ |
|
3768 | 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.' ), |
|
3769 | $class, $parent_class, $version, '<pre>__construct()</pre>' ) ); |
|
3770 | } else { |
|
3771 | /* translators: 1: PHP class name, 2: version number, 3: __construct() method */ |
|
3772 | trigger_error( sprintf( __( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ), |
|
3773 | $class, $version, '<pre>__construct()</pre>' ) ); |
|
3774 | } |
|
3775 | } else { |
|
3776 | if ( ! empty( $parent_class ) ) { |
|
3777 | 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.', |
|
@@ 3775-3783 (lines=9) @@ | ||
3772 | trigger_error( sprintf( __( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ), |
|
3773 | $class, $version, '<pre>__construct()</pre>' ) ); |
|
3774 | } |
|
3775 | } else { |
|
3776 | if ( ! empty( $parent_class ) ) { |
|
3777 | 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.', |
|
3778 | $class, $parent_class, $version, '<pre>__construct()</pre>' ) ); |
|
3779 | } else { |
|
3780 | trigger_error( sprintf( 'The called constructor method for %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.', |
|
3781 | $class, $version, '<pre>__construct()</pre>' ) ); |
|
3782 | } |
|
3783 | } |
|
3784 | } |
|
3785 | ||
3786 | } |