Ticket #34183: 34183.diff
File 34183.diff, 1.2 KB (added by , 9 years ago) |
---|
-
src/wp-includes/functions.php
3774 3774 * Filter whether to trigger an error for _doing_it_wrong() calls. 3775 3775 * 3776 3776 * @since 3.1.0 3777 * @since 4.4.0 Added the `$function`, `$message` and `$version` arguments to allow catching specific warnings. 3777 3778 * 3778 3779 * @param bool $trigger Whether to trigger the error for _doing_it_wrong() calls. Default true. 3780 * @param string $function The function that was called. 3781 * @param string $message A message explaining what has been done incorrectly. 3782 * @param string $version The version of WordPress where the message was added. 3779 3783 */ 3780 if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) {3784 if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true, $function, $message, $version ) ) { 3781 3785 if ( function_exists( '__' ) ) { 3782 3786 $version = is_null( $version ) ? '' : sprintf( __( '(This message was added in version %s.)' ), $version ); 3783 3787 $message .= ' ' . __( 'Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information.' );