Ticket #21316: 21316.4.patch
File 21316.4.patch, 2.4 KB (added by , 12 years ago) |
---|
-
wp-admin/setup-config.php
54 54 wp_unregister_GLOBALS(); 55 55 56 56 require_once(ABSPATH . WPINC . '/compat.php'); 57 require_once(ABSPATH . WPINC . '/functions.php') 57 58 require_once(ABSPATH . WPINC . '/class-wp-error.php'); 58 59 require_once(ABSPATH . WPINC . '/formatting.php'); 59 60 -
wp-includes/load.php
105 105 $php_version = phpversion(); 106 106 if ( version_compare( $required_php_version, $php_version, '>' ) ) { 107 107 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 ) ); 109 109 } 110 110 111 111 if ( ! extension_loaded( 'mysql' ) && ! file_exists( WP_CONTENT_DIR . '/db.php' ) ) { 112 112 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.' ) ); 114 114 } 115 115 } 116 116 … … 685 685 require_once ABSPATH . WPINC . '/locale.php'; 686 686 687 687 // General libraries 688 require_once ABSPATH . WPINC . '/functions.php';689 688 require_once ABSPATH . WPINC . '/plugin.php'; 690 689 691 690 $locales = $locations = array(); -
wp-load.php
52 52 wp_check_php_mysql_versions(); 53 53 54 54 // Die with an error message 55 require_once( ABSPATH . WPINC . '/functions.php' ); 55 56 $die = __( "There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started." ) . '</p>'; 56 57 $die .= '<p>' . __( "Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>." ) . '</p>'; 57 58 $die .= '<p>' . __( "You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file." ) . '</p>';