Make WordPress Core

Changeset 12939


Ignore:
Timestamp:
02/03/2010 09:38:09 PM (15 years ago)
Author:
markjaquith
Message:

Use $required_php_version. Props nacin. fixes #11637

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/setup-config.php

    r12732 r12939  
    3939require_once(ABSPATH . WPINC . '/functions.php');
    4040require_once(ABSPATH . WPINC . '/classes.php');
     41require_once(ABSPATH . WPINC . '/version.php');
    4142
    4243if (!file_exists(ABSPATH . 'wp-config-sample.php'))
     
    5354    wp_die("<p>The file 'wp-config.php' already exists one level above your WordPress installation. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='install.php'>installing now</a>.</p>");
    5455
    55 if ( version_compare( '4.3', phpversion(), '>' ) )
    56     wp_die( sprintf( /*WP_I18N_OLD_PHP*/'Your server is running PHP version %s but WordPress requires at least 4.3.'/*/WP_I18N_OLD_PHP*/, phpversion() ) );
     56if ( version_compare( $required_php_version, phpversion(), '>' ) )
     57    wp_die( sprintf( /*WP_I18N_OLD_PHP*/'Your server is running PHP version %1$s but WordPress requires at least %2$s.'/*/WP_I18N_OLD_PHP*/, phpversion(), $required_php_version ) );
    5758
    5859if ( !extension_loaded('mysql') && !file_exists(ABSPATH . 'wp-content/db.php') )
  • trunk/wp-includes/wp-db.php

    r12922 r12939  
    12191219     * Retrieve the name of the function that called wpdb.
    12201220     *
    1221      * Requires PHP 4.3 and searches up the list of functions until it reaches
     1221     * Searches up the list of functions until it reaches
    12221222     * the one that would most logically had called this method.
    12231223     *
     
    12271227     */
    12281228    function get_caller() {
    1229         // requires PHP 4.3+
    1230         if ( !is_callable('debug_backtrace') )
    1231             return '';
    1232 
    12331229        $bt = debug_backtrace();
    12341230        $caller = array();
Note: See TracChangeset for help on using the changeset viewer.