Ticket #3426: 3426.5.diff
File 3426.5.diff, 1.3 KB (added by , 15 years ago) |
---|
-
wp-includes/load.php
105 105 } 106 106 107 107 /** 108 * Check if a favicon.ico request made it to us, if it did return 109 * headers for 0 length image/vnd.microsoft.icon 110 * 111 * If the request for a favicon.ico made it this far lets toss out a 0 length 112 * header to short circuit the request from returning a 404. 113 * 114 * @since 3.0 115 */ 116 function wp_favicon() { 117 if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) { 118 header('Content-Type: image/vnd.microsoft.icon'); 119 header('Content-Length: 0'); 120 exit; 121 } 122 } 123 124 /** 108 125 * Dies with a maintenance message when conditions are met. 109 126 * 110 127 * Checks for a file in the WordPress root directory named ".maintenance". … … 544 561 return false; 545 562 } 546 563 547 ?> 548 No newline at end of file 564 ?> -
wp-settings.php
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 45 46 // Check if we have recieved a request due to missing favicon.ico 47 wp_favicon(); 48 46 49 // Check if we're in maintenance mode. 47 50 wp_maintenance(); 48 51