Changeset 12207 for trunk/wp-includes/functions.php
- Timestamp:
- 11/18/2009 08:22:49 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r12203 r12207 2928 2928 * function. 2929 2929 * 2930 * The current behavior is to trigger an user error if WP_DEBUG is defined and 2931 * is true. 2930 * The current behavior is to trigger an user error if WP_DEBUG is true. 2932 2931 * 2933 2932 * This function is to be used in every function in depreceated.php … … 2950 2949 2951 2950 // Allow plugin to filter the output error trigger 2952 if( defined('WP_DEBUG') && ( true === WP_DEBUG )&& apply_filters( 'deprecated_function_trigger_error', true )) {2951 if( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true )) { 2953 2952 if( !is_null($replacement) ) 2954 2953 trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $function, $version, $replacement ) ); … … 2965 2964 * file. 2966 2965 * 2967 * The current behavior is to trigger an user error if WP_DEBUG is defined and 2968 * is true. 2966 * The current behavior is to trigger an user error if WP_DEBUG is true. 2969 2967 * 2970 2968 * This function is to be used in every file that is depreceated … … 2987 2985 2988 2986 // Allow plugin to filter the output error trigger 2989 if( defined('WP_DEBUG') && ( true === WP_DEBUG ) && apply_filters( 'deprecated_file_trigger_error', true )) {2987 if( WP_DEBUG && apply_filters( 'deprecated_file_trigger_error', true ) ) { 2990 2988 if( !is_null($replacement) ) 2991 2989 trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $file, $version, $replacement ) );
Note: See TracChangeset
for help on using the changeset viewer.