Ticket #34183: 34183.2.diff
File 34183.2.diff, 1.1 KB (added by , 8 years ago) |
---|
-
src/wp-includes/functions.php
4108 4108 * Filters whether to trigger an error for _doing_it_wrong() calls. 4109 4109 * 4110 4110 * @since 3.1.0 4111 * @since 4.8.0 Added the `$function`, `$message` and `$version` parameters. 4111 4112 * 4112 * @param bool $trigger Whether to trigger the error for _doing_it_wrong() calls. Default true. 4113 * @param bool $trigger Whether to trigger the error for _doing_it_wrong() calls. Default true. 4114 * @param string $function The function that was called. 4115 * @param string $message A message explaining what has been done incorrectly. 4116 * @param string $version The version of WordPress where the message was added. 4113 4117 */ 4114 if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) {4118 if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true, $function, $message, $version ) ) { 4115 4119 if ( function_exists( '__' ) ) { 4116 4120 if ( is_null( $version ) ) { 4117 4121 $version = '';