Make WordPress Core


Ignore:
Timestamp:
09/04/2012 08:31:14 PM (13 years ago)
Author:
nacin
Message:

Ensure we are parseable by PHP4 until wp_check_php_mysql_versions() has a chance to run.

Merges [21715], [21716] to the 3.4 branch.
props SergeyBiryukov.
fixes #21316.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4/wp-includes/load.php

    r19862 r21739  
    106106    if ( version_compare( $required_php_version, $php_version, '>' ) ) {
    107107        wp_load_translations_early();
    108         wp_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 ) );
     108        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 ) );
    109109    }
    110110
    111111    if ( ! extension_loaded( 'mysql' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
    112112        wp_load_translations_early();
    113         wp_die( __( 'Your PHP installation appears to be missing the MySQL extension which is required by WordPress.' ) );
     113        die( __( 'Your PHP installation appears to be missing the MySQL extension which is required by WordPress.' ) );
    114114    }
    115115}
     
    686686
    687687    // General libraries
    688     require_once ABSPATH . WPINC . '/functions.php';
    689688    require_once ABSPATH . WPINC . '/plugin.php';
    690689
Note: See TracChangeset for help on using the changeset viewer.