Make WordPress Core


Ignore:
Timestamp:
12/05/2007 12:29:05 AM (19 years ago)
Author:
ryan
Message:

Remove unused variables. Props DD32. fixes #5418

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r6333 r6354  
    33// Update an existing post with values provided in $_POST.
    44function edit_post() {
    5         global $user_ID;
    65
    76        $post_ID = (int) $_POST['post_ID'];
     
    351350                wp_cache_delete($post_ID, 'post_meta');
    352351
    353                 $result = $wpdb->query( "
    354                                                 INSERT INTO $wpdb->postmeta
    355                                                 (post_id,meta_key,meta_value )
    356                                                 VALUES ('$post_ID','$metakey','$metavalue' )
    357                                         " );
     352                $wpdb->query( "
     353                                INSERT INTO $wpdb->postmeta
     354                                (post_id,meta_key,meta_value )
     355                                VALUES ('$post_ID','$metakey','$metavalue' )
     356                        " );
    358357                return $wpdb->insert_id;
    359358        }
     
    429428// Replace hrefs of attachment anchors with up-to-date permalinks.
    430429function _fix_attachment_links( $post_ID ) {
    431         global $wp_rewrite;
    432430
    433431        $post = & get_post( $post_ID, ARRAY_A );
Note: See TracChangeset for help on using the changeset viewer.