Make WordPress Core

Changeset 27557


Ignore:
Timestamp:
03/15/2014 06:16:10 AM (9 years ago)
Author:
nacin
Message:

Send a charset header when erroring out in wp_check_php_mysql_versions().

props rodrigosprimo.
fixes #26536.

File:
1 edited

Legend:

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

    r27335 r27557  
    105105    if ( version_compare( $required_php_version, $php_version, '>' ) ) {
    106106        wp_load_translations_early();
     107        header( 'Content-Type: text/html; charset=utf-8' );
    107108        die( sprintf( __( 'Your server is running PHP version %1$s but WordPress %2$s requires at least %3$s.' ), $php_version, $wp_version, $required_php_version ) );
    108109    }
     
    110111    if ( ! extension_loaded( 'mysql' ) && ! extension_loaded( 'mysqli' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
    111112        wp_load_translations_early();
     113         header( 'Content-Type: text/html; charset=utf-8' );
    112114        die( __( 'Your PHP installation appears to be missing the MySQL extension which is required by WordPress.' ) );
    113115    }
Note: See TracChangeset for help on using the changeset viewer.