Buy Reviews
Powered by MaxBlogPress  

Improper 404 Error Handling Fix For WordPress 2.5

點閱人數:35次 六月 26th, 2008 by ㄚ琪 |

用 BloggerAds 替自已加薪

我在改用固定連結的方式在我的部落格,可世醫值發生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’) ) ) {

 

喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Hemidemi
  • MyShare
  • Technorati
  • StumbleUpon
  • Diigo
  • Facebook
  • Twitter

Random Posts

發表迴響

名稱:(必)
電子郵件(並不會被發佈)(必)
個人網站

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>