Make WordPress Core


Ignore:
Timestamp:
10/12/2007 09:12:34 PM (17 years ago)
Author:
ryan
Message:

Eliminate , , and . see #5182

File:
1 edited

Legend:

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

    r6213 r6229  
    349349            return false;
    350350
     351        wp_cache_delete($post_ID, 'post_meta');
     352
    351353        $result = $wpdb->query( "
    352354                        INSERT INTO $wpdb->postmeta
     
    363365    $mid = (int) $mid;
    364366
     367    $post_id = $wpdb->get_var("SELECT post_id FROM $wpdb->postmeta WHERE meta_id = '$mid'");
     368    wp_cache_delete($post_id, 'post_meta');
     369
    365370    return $wpdb->query( "DELETE FROM $wpdb->postmeta WHERE meta_id = '$mid'" );
    366371}
     
    408413    if ( in_array($mkey, $protected) )
    409414        return false;
     415
     416    $post_id = $wpdb->get_var("SELECT post_id FROM $wpdb->postmeta WHERE meta_id = '$mid'");
     417    wp_cache_delete($post_id, 'post_meta');
    410418
    411419    $mvalue = maybe_serialize( stripslashes( $mvalue ));
Note: See TracChangeset for help on using the changeset viewer.