Changeset 2524 for trunk/wp-admin/post.php
- Timestamp:
- 04/09/2005 05:25:47 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r2496 r2524 208 208 die ( __('You are not allowed to edit this post.') ); 209 209 210 $postdata = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID = '$post_ID'");210 $postdata = &get_post($post_ID); 211 211 $content = $postdata->post_content; 212 212 $content = format_to_edit($content); … … 238 238 } 239 239 240 $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID = '$post_ID'");240 $post = &$postdata; 241 241 ?> 242 242 <div id='preview' class='wrap'> … … 528 528 } 529 529 530 $postdata = get_post data($p) or die(sprintf(__('Oops, no post with this ID. <a href="%s">Go back</a>!'), 'edit.php'));530 $postdata = get_post($p) or die(sprintf(__('Oops, no post with this ID. <a href="%s">Go back</a>!'), 'edit.php')); 531 531 $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'post.php')); 532 532
Note: See TracChangeset
for help on using the changeset viewer.