Move deprecated functions to deprecated.php. #2520

git-svn-id: https://develop.svn.wordpress.org/trunk@3589 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-03-02 03:27:48 +00:00
parent 1239ce2315
commit 64173c9918
7 changed files with 415 additions and 411 deletions

View File

@@ -537,31 +537,6 @@ meta_key = '$key' AND post_id = '$post_id' AND meta_value = '$prev_value'");
return true;
}
// Deprecated. Use get_post().
function get_postdata($postid) {
$post = &get_post($postid);
$postdata = array (
'ID' => $post->ID,
'Author_ID' => $post->post_author,
'Date' => $post->post_date,
'Content' => $post->post_content,
'Excerpt' => $post->post_excerpt,
'Title' => $post->post_title,
'Category' => $post->post_category,
'post_status' => $post->post_status,
'comment_status' => $post->comment_status,
'ping_status' => $post->ping_status,
'post_password' => $post->post_password,
'to_ping' => $post->to_ping,
'pinged' => $post->pinged,
'post_type' => $post->post_type,
'post_name' => $post->post_name
);
return $postdata;
}
// Retrieves post data given a post ID or post object.
// Handles post caching.
function &get_post(&$post, $output = OBJECT) {
@@ -1250,16 +1225,6 @@ function wp_get_http_headers( $url, $red = 1 ) {
return $headers;
}
// Deprecated. Use the new post loop.
function start_wp() {
global $wp_query, $post;
// Since the old style loop is being used, advance the query iterator here.
$wp_query->next_post();
setup_postdata($post);
}
// Setup global post data.
function setup_postdata($post) {
global $id, $postdata, $authordata, $day, $page, $pages, $multipage, $more, $numpages, $wp_query;