WordPress.org

Make WordPress Core

Ticket #44406: 44406.diff

File 44406.diff, 700 bytes (added by naoki0h, 2 years ago)
  • src/wp-includes/functions.php

     
    43714371         */
    43724372        if ( WP_DEBUG && apply_filters( 'deprecated_hook_trigger_error', true ) ) {
    43734373                $message = empty( $message ) ? '' : ' ' . $message;
    4374                 if ( ! is_null( $replacement ) ) {
     4374                if ( ! empty( $replacement ) ) {
    43754375                        /* translators: 1: WordPress hook name, 2: version number, 3: alternative hook name */
    43764376                        trigger_error( sprintf( __( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ), $hook, $version, $replacement ) . $message );
    43774377                } else {