Make WordPress Core

Ticket #34183: 34183.2.diff

File 34183.2.diff, 1.1 KB (added by flixos90, 8 years ago)
  • src/wp-includes/functions.php

     
    41084108         * Filters whether to trigger an error for _doing_it_wrong() calls.
    41094109         *
    41104110         * @since 3.1.0
     4111         * @since 4.8.0 Added the `$function`, `$message` and `$version` parameters.
    41114112         *
    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.
    41134117         */
    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 ) ) {
    41154119                if ( function_exists( '__' ) ) {
    41164120                        if ( is_null( $version ) ) {
    41174121                                $version = '';