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