Changeset 1355 for trunk/wp-admin/edit.php
- Timestamp:
- 05/24/2004 08:22:18 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r1271 r1355 13 13 <?php 14 14 get_currentuserinfo(); 15 $drafts = $wpdb->get_results("SELECT ID, post_title FROM $ tableposts WHERE post_status = 'draft' AND post_author = $user_ID");15 $drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author = $user_ID"); 16 16 if ($drafts) { 17 17 ?> … … 48 48 <select name='m'> 49 49 <?php 50 $arc_result=$wpdb->get_results("SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $ tableposts ORDER BY post_date DESC");50 $arc_result=$wpdb->get_results("SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts ORDER BY post_date DESC"); 51 51 foreach ($arc_result as $arc_row) { 52 52 $arc_year = $arc_row->yyear; … … 126 126 if ( 1 == count($posts) ) { 127 127 128 $comments = $wpdb->get_results("SELECT * FROM $ tablecomments WHERE comment_post_ID = $id ORDER BY comment_date");128 $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id ORDER BY comment_date"); 129 129 if ($comments) { 130 130 ?>
Note: See TracChangeset
for help on using the changeset viewer.