WordPress.org

Make WordPress Core

Ticket #3471: 3471.wp-die-header-patch.patch

File 3471.wp-die-header-patch.patch, 803 bytes (added by DD32, 11 years ago)
  • wp-includes/functions.php

     
    13331333        } 
    13341334 
    13351335        header('Content-Type: text/html; charset=utf-8'); 
     1336        header("HTTP/1.1 500 Internal Server Error"); 
    13361337 
    13371338        if ( empty($title) ) 
    13381339                $title = __('WordPress › Error'); 
  • wp-includes/wp-db.php

     
    371371                        return false; 
    372372 
    373373                header('Content-Type: text/html; charset=utf-8'); 
     374                header("HTTP/1.1 500 Internal Server Error"); 
    374375 
    375376                if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) 
    376377                        $admin_dir = '';