Make WordPress Core


Ignore:
Timestamp:
03/18/2009 02:43:45 AM (17 years ago)
Author:
ryan
Message:

Trim trailing whitespace

File:
1 edited

Legend:

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

    r10730 r10810  
    513513    if ( !$meta_key )
    514514        return false;
    515    
     515
    516516    global $wpdb;
    517517
     
    564564    if ( !$meta_key )
    565565        return false;
    566    
     566
    567567    if ( empty( $meta_value ) )
    568568        $meta_id = $wpdb->get_var( $wpdb->prepare( "SELECT meta_id FROM $wpdb->postmeta WHERE post_id = %d AND meta_key = %s", $post_id, $meta_key ) );
     
    598598    if ( !$key )
    599599        return '';
    600    
     600
    601601    $post_id = (int) $post_id;
    602602
     
    649649    if ( !$meta_key )
    650650        return false;
    651    
     651
    652652    if ( ! $wpdb->get_var( $wpdb->prepare( "SELECT meta_key FROM $wpdb->postmeta WHERE meta_key = %s AND post_id = %d", $meta_key, $post_id ) ) ) {
    653653        return add_post_meta($post_id, $meta_key, $meta_value);
     
    681681    if ( !$post_meta_key )
    682682        return false;
    683    
     683
    684684    global $wpdb;
    685685    if ( $wpdb->query($wpdb->prepare("DELETE FROM $wpdb->postmeta WHERE meta_key = %s", $post_meta_key)) ) {
     
    757757    if ( !$key )
    758758        return null;
    759    
     759
    760760    $custom = get_post_custom($post_id);
    761761
     
    15471547    if ( !empty($tax_input) ) {
    15481548        foreach ( $tax_input as $taxonomy => $tags ) {
    1549             wp_set_post_terms( $post_ID, $tags, $taxonomy );           
     1549            wp_set_post_terms( $post_ID, $tags, $taxonomy );
    15501550        }
    15511551    }
     
    35273527    $post = _wp_post_revision_fields( $post, $autosave );
    35283528    $post = add_magic_quotes($post); //since data is from db
    3529    
     3529
    35303530    $revision_id = wp_insert_post( $post );
    35313531    if ( is_wp_error($revision_id) )
     
    36033603
    36043604    $update['ID'] = $revision['post_parent'];
    3605    
     3605
    36063606    $update = add_magic_quotes( $update ); //since data is from db
    36073607
Note: See TracChangeset for help on using the changeset viewer.