Ticket #11637: 11637.2.diff
| File 11637.2.diff, 2.3 KB (added by nacin, 3 years ago) |
|---|
-
wp-admin/setup-config.php
38 38 require_once(ABSPATH . WPINC . '/compat.php'); 39 39 require_once(ABSPATH . WPINC . '/functions.php'); 40 40 require_once(ABSPATH . WPINC . '/classes.php'); 41 require_once(ABSPATH . WPINC . '/version.php'); 41 42 42 43 if (!file_exists(ABSPATH . 'wp-config-sample.php')) 43 44 wp_die('Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.'); … … 52 53 if (file_exists(ABSPATH . '../wp-config.php') && ! file_exists(ABSPATH . '../wp-settings.php')) 53 54 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>"); 54 55 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()) );56 if ( 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 ) ); 57 58 58 59 if ( !extension_loaded('mysql') && !file_exists(ABSPATH . 'wp-content/db.php') ) 59 60 wp_die( /*WP_I18N_OLD_MYSQL*/'Your PHP installation appears to be missing the MySQL extension which is required by WordPress.'/*/WP_I18N_OLD_MYSQL*/ ); -
wp-includes/wp-db.php
1218 1218 /** 1219 1219 * Retrieve the name of the function that called wpdb. 1220 1220 * 1221 * Requires PHP 4.3 and searches up the list of functions until it reaches1221 * Searches up the list of functions until it reaches 1222 1222 * the one that would most logically had called this method. 1223 1223 * 1224 1224 * @since 2.5.0 … … 1226 1226 * @return string The name of the calling function 1227 1227 */ 1228 1228 function get_caller() { 1229 // requires PHP 4.3+1230 if ( !is_callable('debug_backtrace') )1231 return '';1232 1233 1229 $bt = debug_backtrace(); 1234 1230 $caller = array(); 1235 1231
