Make WordPress Core

Ticket #54327: 54327.diff

File 54327.diff, 524 bytes (added by sabbirshouvo, 3 years ago)

Sounds like a valid proposal to me. Adding a patch.

  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 86a21a8e78..6fd145d6b8 100644
    a b function _default_wp_die_handler( $message, $title = '', $args = array() ) { 
    37963796</head>
    37973797<body id="error-page">
    37983798<?php endif; // ! did_action( 'admin_head' ) ?>
    3799         <?php echo $message; ?>
     3799        <?php
     3800                if( is_array( $message ) ) {
     3801                        print_r( $message );
     3802                } else {
     3803                        echo $message;
     3804                }
     3805        ?>
    38003806</body>
    38013807</html>
    38023808        <?php