Changeset 13205
- Timestamp:
- 02/18/2010 11:41:50 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/load.php
r13185 r13205 103 103 if ( !extension_loaded( 'mysql' ) && !file_exists( WP_CONTENT_DIR . '/db.php' ) ) 104 104 die( /*WP_I18N_OLD_MYSQL*/'Your PHP installation appears to be missing the MySQL extension which is required by WordPress.'/*/WP_I18N_OLD_MYSQL*/ ); 105 } 106 107 /** 108 * Don't load all of WordPress when handling a favicon.ico request. 109 * Instead, send the headers for a zero-length favicon and bail. 110 * 111 * @since 3.0.0 112 */ 113 function wp_favicon_request() { 114 if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) { 115 header('Content-Type: image/vnd.microsoft.icon'); 116 header('Content-Length: 0'); 117 exit; 118 } 105 119 } 106 120 -
trunk/wp-settings.php
r13204 r13205 43 43 // Check for the required PHP version and for the MySQL extension or a database drop-in. 44 44 wp_check_php_mysql_versions(); 45 46 // Check if we have recieved a request due to missing favicon.ico 47 wp_favicon_request(); 45 48 46 49 // Check if we're in maintenance mode.
Note: See TracChangeset
for help on using the changeset viewer.