WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/22/2019 08:51:56 AM (2 years ago)
Author:
flixos90
Message:

Bootstrap/Load: Fix fatal error when passing a WP_Error to wp_die().

This was introduced in [44466]. Also, this changeset adds tests for _wp_die_process_input() so that this never happens again.

Props dd32.
See #45933.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r44682 r44690  
    33753375                        'code'    => $error_code,
    33763376                        'message' => $error_message,
    3377                         'data'    => $error->get_error_data( $error_code ),
     3377                        'data'    => $message->get_error_data( $error_code ),
    33783378                    );
    33793379                }
Note: See TracChangeset for help on using the changeset viewer.