Improper 404 Error Handling Fix For WordPress 2.5

我在改用固定连结的方式在我的部落格,可世医值发生404找不到网页的错误,后来在Improper 404 Error Handling Fix For WordPress 2.5发现原来是Woedpress 2.5.1的一个错误,Orz!

You can apply the fix manually by editing the /wp-includes/query.php file. The offending code is on line 922:

if ( ('page' != get_option('show_on_front') ) || ( $reqpage != get_option('page_for_posts') ) ) {

Change it to:

if ( ('page' != get_option('show_on_front') ) || ( $reqpage !== get_option(’page_for_posts’) ) ) {