Remove unused variables. Props DD32. fixes #5418

git-svn-id: https://develop.svn.wordpress.org/trunk@6354 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-12-05 00:29:05 +00:00
parent 34c792ccc8
commit 721b8c930b
9 changed files with 9 additions and 25 deletions
+5 -7
View File
@@ -2,7 +2,6 @@
// Update an existing post with values provided in $_POST.
function edit_post() {
global $user_ID;
$post_ID = (int) $_POST['post_ID'];
@@ -350,11 +349,11 @@ function add_meta( $post_ID ) {
wp_cache_delete($post_ID, 'post_meta');
$result = $wpdb->query( "
INSERT INTO $wpdb->postmeta
(post_id,meta_key,meta_value )
VALUES ('$post_ID','$metakey','$metavalue' )
" );
$wpdb->query( "
INSERT INTO $wpdb->postmeta
(post_id,meta_key,meta_value )
VALUES ('$post_ID','$metakey','$metavalue' )
" );
return $wpdb->insert_id;
}
return false;
@@ -428,7 +427,6 @@ function update_meta( $mid, $mkey, $mvalue ) {
// Replace hrefs of attachment anchors with up-to-date permalinks.
function _fix_attachment_links( $post_ID ) {
global $wp_rewrite;
$post = & get_post( $post_ID, ARRAY_A );