mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Removed mysql reference, converted to EZSQL
git-svn-id: https://develop.svn.wordpress.org/trunk@258 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+2
-3
@@ -2,8 +2,7 @@
|
||||
<!-- you can START editing here -->
|
||||
|
||||
<?php // don't touch these 2 lines
|
||||
$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content LIKE '%<trackback />%' ORDER BY comment_date";
|
||||
$resultc = mysql_query($queryc); if ($resultc) {
|
||||
$resultc = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content LIKE '%<trackback />%' ORDER BY comment_date"); if ($resultc) {
|
||||
?>
|
||||
|
||||
<h2>Trackbacks</h2>
|
||||
@@ -12,7 +11,7 @@
|
||||
<p><em><?php trackback_url() ?></em></p>
|
||||
|
||||
<ol id="trackbacks">
|
||||
<?php /* this line is b2's motor, do not delete it */ while($rowc = mysql_fetch_object($resultc)) { $commentdata = get_commentdata($rowc->comment_ID); ?>
|
||||
<?php /* this line is b2's motor, do not delete it */ foreach ($resultc as $rowc) { $commentdata = get_commentdata($rowc->comment_ID); ?>
|
||||
<li id="trackback-<?php comment_ID() ?>">
|
||||
<?php comment_text() ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user