Make WordPress Core


Ignore:
Timestamp:
08/09/2008 05:36:14 AM (17 years ago)
Author:
ryan
Message:

Trailing whitespace cleanup

File:
1 edited

Legend:

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

    r8589 r8600  
    6060    $previous_status = get_post_field('post_status',  $_POST['ID']);
    6161
    62     // Posts 'submitted for approval' present are submitted to $_POST the same as if they were being published. 
     62    // Posts 'submitted for approval' present are submitted to $_POST the same as if they were being published.
    6363    // Change status from 'publish' to 'pending' if user lacks permissions to publish or to resave published posts.
    6464    if ( 'page' == $_POST['post_type'] ) {
     
    357357        wp_cache_delete($post_ID, 'post_meta');
    358358
    359         $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->postmeta 
     359        $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->postmeta
    360360            (post_id,meta_key,meta_value ) VALUES (%s, %s, %s)",
    361361            $post_ID, $metakey, $metavalue) );
     
    421421    $meta_value = maybe_serialize( stripslashes( $meta_value ));
    422422    $meta_id = (int) $meta_id;
    423    
     423
    424424    $data  = compact( 'meta_key', 'meta_value' );
    425425    $where = compact( 'meta_id' );
     
    586586        $post->post_status = 'publish';
    587587        $post->post_date = date('Y-m-d H:i:s');
    588         $post->post_name = sanitize_title($post->post_name? $post->post_name : $post->post_title, $post->ID); 
     588        $post->post_name = sanitize_title($post->post_name? $post->post_name : $post->post_title, $post->ID);
    589589    }
    590590
Note: See TracChangeset for help on using the changeset viewer.