風之紫色  BLOG

替换SQL_CALC_FOUND_ROWS和SELECT_FOUND_ROWS()

Wordpress2010-09-28 05:35
第一种方法:修改核心代码query.php
wp-includes/query.php

line 2591~2597

代码如下     if ( !$q['no_found_rows'] && !empty($limits) )                 //$found_rows = 'SQL_CALC_FOUND_ROWS';
    Copyright © 風之紫色, All Rights Reserved.Theme by 風之紫色.Style as Facebook.
    Time:0.03407s,Mem1.399488M
    FZ 1.0   Author : 風之紫色