Make WordPress Core

Changeset 21715 for trunk/wp-load.php


Ignore:
Timestamp:
09/04/2012 02:38:37 AM (13 years ago)
Author:
nacin
Message:

Don't include functions.php in wp_load_translations_early()
to avoid a parse error in a PHP4 environment (caused by use of
the clone keyword in option.php).

Manually include functions.php in the rare situations where it
is not already included by the time we need to load translations
early.

Remove the functions.php dependency by switching the wp_die() calls
to die(), in wp_check_php_mysql_versions().

props SergeyBiryukov, see #21316, for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-load.php

    r20561 r21715  
    4949    require_once( ABSPATH . WPINC . '/version.php' );
    5050
     51    wp_check_php_mysql_versions();
    5152    wp_load_translations_early();
    52     wp_check_php_mysql_versions();
     53
     54    require_once( ABSPATH . WPINC . '/functions.php' );
    5355
    5456    // Die with an error message
Note: See TracChangeset for help on using the changeset viewer.