Removed mysql direct calls

git-svn-id: https://develop.svn.wordpress.org/trunk@282 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mike Little
2003-07-30 23:44:08 +00:00
parent 210fd94760
commit 5e25b738cf
5 changed files with 27 additions and 33 deletions

View File

@@ -519,7 +519,7 @@ function get_postdata($postid) {
return $postdata;
}
function get_postdata2($postid=0) { // less flexible, but saves mysql queries
function get_postdata2($postid=0) { // less flexible, but saves DB queries
global $post;
$postdata = array (
'ID' => $post->ID,
@@ -537,7 +537,7 @@ function get_postdata2($postid=0) { // less flexible, but saves mysql queries
return $postdata;
}
function get_commentdata($comment_ID,$no_cache=0) { // less flexible, but saves mysql queries
function get_commentdata($comment_ID,$no_cache=0) { // less flexible, but saves DB queries
global $postc,$id,$commentdata,$tablecomments,$querycount, $wpdb;
if ($no_cache) {
$myrow = $wpdb->get_row("SELECT * FROM $tablecomments WHERE comment_ID = $comment_ID", ARRAY_A);