Make WordPress Core

Ticket #36215: 36215.patch

File 36215.patch, 684 bytes (added by juanfra, 9 years ago)

Print error if headers were sent already

  • wp-login.php

     
    387387
    388388nocache_headers();
    389389
     390if ( headers_sent() ) {
     391
     392        printf( __( '<strong>ERROR</strong>: It seems there is a syntax error in your <code>wp-config.php</code> file. You can read <a href="%s" target="_blank">this article</a> to find a solution.' ), esc_url( 'http://codex.wordpress.org/Installing_WordPress#Common_Installation_Problems' ) );
     393        exit;
     394}
     395
    390396header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
    391397
    392398if ( defined( 'RELOCATE' ) && RELOCATE ) { // Move flag is set