WordPress.org

Make WordPress Core


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

Use $required_php_version. Props nacin. fixes #11637

File:
1 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') )
Note: See TracChangeset for help on using the changeset viewer.