mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
Removed mysql direct calls
git-svn-id: https://develop.svn.wordpress.org/trunk@282 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user