mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 02:04:26 +00:00
Missing querycount
git-svn-id: https://develop.svn.wordpress.org/trunk@558 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -50,6 +50,7 @@ SELECT;
|
||||
."FROM $tableoptionvalues "
|
||||
."WHERE option_id = $option_result->option_id "
|
||||
."ORDER BY optionvalue_seq");
|
||||
++$querycount;
|
||||
if ($select) {
|
||||
foreach($select as $option) {
|
||||
$ret .= '<option value="'.$option->optionvalue.'"';
|
||||
@@ -67,6 +68,7 @@ SELECT;
|
||||
case 7: // SQL select
|
||||
// first get the sql to run
|
||||
$sql = $wpdb->get_var("SELECT optionvalue FROM $tableoptionvalues WHERE option_id = $option_result->option_id");
|
||||
++$querycount;
|
||||
if (!$sql) {
|
||||
return $option_result->option_name . $editable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user