mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 00:24:52 +01:00
Added missing global querycount
git-svn-id: https://develop.svn.wordpress.org/trunk@436 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ad420fecc5
commit
58e530dde4
@ -351,7 +351,7 @@ function strip_all_but_one_link($text, $mylink) {
|
|||||||
|
|
||||||
|
|
||||||
function get_lastpostdate() {
|
function get_lastpostdate() {
|
||||||
global $tableposts, $cache_lastpostdate, $use_cache, $time_difference, $pagenow, $wpdb;
|
global $tableposts, $cache_lastpostdate, $use_cache, $time_difference, $pagenow, $wpdb, $querycount;
|
||||||
if ((!isset($cache_lastpostdate)) OR (!$use_cache)) {
|
if ((!isset($cache_lastpostdate)) OR (!$use_cache)) {
|
||||||
$now = date("Y-m-d H:i:s",(time() + ($time_difference * 3600)));
|
$now = date("Y-m-d H:i:s",(time() + ($time_difference * 3600)));
|
||||||
if ($pagenow != 'b2edit.php') {
|
if ($pagenow != 'b2edit.php') {
|
||||||
@ -468,7 +468,7 @@ function get_settings($setting) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_alloptions() {
|
function get_alloptions() {
|
||||||
global $tableoptions, $wpdb;
|
global $tableoptions, $wpdb, $querycount;
|
||||||
$options = $wpdb->get_results("SELECT option_name, option_value FROM $tableoptions");
|
$options = $wpdb->get_results("SELECT option_name, option_value FROM $tableoptions");
|
||||||
++$querycount;
|
++$querycount;
|
||||||
if ($options) {
|
if ($options) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user