Changeset 39315
- Timestamp:
- 11/19/2016 02:38:16 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r39068 r39315 3779 3779 if ( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true ) ) { 3780 3780 if ( function_exists( '__' ) ) { 3781 if ( ! is_null( $replacement ) ) 3781 if ( ! is_null( $replacement ) ) { 3782 /* translators: 1: PHP function name, 2: version number, 3: alternative function name */ 3782 3783 trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $function, $version, $replacement ) ); 3783 else 3784 } else { 3785 /* translators: 1: PHP function name, 2: version number */ 3784 3786 trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.'), $function, $version ) ); 3787 } 3785 3788 } else { 3786 if ( ! is_null( $replacement ) ) 3789 if ( ! is_null( $replacement ) ) { 3787 3790 trigger_error( sprintf( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.', $function, $version, $replacement ) ); 3788 else3791 } else { 3789 3792 trigger_error( sprintf( '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.', $function, $version ) ); 3793 } 3790 3794 } 3791 3795 } … … 3903 3907 $message = empty( $message ) ? '' : ' ' . $message; 3904 3908 if ( function_exists( '__' ) ) { 3905 if ( ! is_null( $replacement ) ) 3909 if ( ! is_null( $replacement ) ) { 3910 /* translators: 1: PHP file name, 2: version number, 3: alternative file name */ 3906 3911 trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $file, $version, $replacement ) . $message ); 3907 else 3912 } else { 3913 /* translators: 1: PHP file name, 2: version number */ 3908 3914 trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.'), $file, $version ) . $message ); 3915 } 3909 3916 } else { 3910 if ( ! is_null( $replacement ) ) 3917 if ( ! is_null( $replacement ) ) { 3911 3918 trigger_error( sprintf( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.', $file, $version, $replacement ) . $message ); 3912 else3919 } else { 3913 3920 trigger_error( sprintf( '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.', $file, $version ) . $message ); 3921 } 3914 3922 } 3915 3923 } … … 3963 3971 if ( WP_DEBUG && apply_filters( 'deprecated_argument_trigger_error', true ) ) { 3964 3972 if ( function_exists( '__' ) ) { 3965 if ( ! is_null( $message ) ) 3973 if ( ! is_null( $message ) ) { 3974 /* translators: 1: PHP function name, 2: version number, 3: optional message regarding the change */ 3966 3975 trigger_error( sprintf( __('%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s'), $function, $version, $message ) ); 3967 else 3976 } else { 3977 /* translators: 1: PHP function name, 2: version number */ 3968 3978 trigger_error( sprintf( __('%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s with no alternative available.'), $function, $version ) ); 3979 } 3969 3980 } else { 3970 if ( ! is_null( $message ) ) 3981 if ( ! is_null( $message ) ) { 3971 3982 trigger_error( sprintf( '%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s', $function, $version, $message ) ); 3972 else3983 } else { 3973 3984 trigger_error( sprintf( '%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s with no alternative available.', $function, $version ) ); 3985 } 3974 3986 } 3975 3987 } … … 4019 4031 $message = empty( $message ) ? '' : ' ' . $message; 4020 4032 if ( ! is_null( $replacement ) ) { 4033 /* translators: 1: PHP hook name, 2: version number, 3: alternative hook name */ 4021 4034 trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ), $hook, $version, $replacement ) . $message ); 4022 4035 } else { 4036 /* translators: 1: PHP hook name, 2: version number */ 4023 4037 trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.' ), $hook, $version ) . $message ); 4024 4038 }
Note: See TracChangeset
for help on using the changeset viewer.