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-admin/includes/upgrade.php

    r10767 r10810  
    9797    /* translators: Default category slug */
    9898    $cat_slug = sanitize_title(_x('Uncategorized', 'Default category slug'));
    99    
     99
    100100    $wpdb->insert( $wpdb->terms, array('name' => $cat_name, 'slug' => $cat_slug, 'term_group' => 0) );
    101101    $wpdb->insert( $wpdb->term_taxonomy, array('term_id' => '1', 'taxonomy' => 'category', 'description' => '', 'parent' => 0, 'count' => 1));
     
    105105    /* translators: Default link category slug */
    106106    $cat_slug = sanitize_title(_x('Blogroll', 'Default link category slug'));
    107    
     107
    108108    $wpdb->insert( $wpdb->terms, array('name' => $cat_name, 'slug' => $cat_slug, 'term_group' => 0) );
    109109    $wpdb->insert( $wpdb->term_taxonomy, array('term_id' => '2', 'taxonomy' => 'link_category', 'description' => '', 'parent' => 0, 'count' => 7));
     
    118118
    119119    $default_links[] = array(   'link_url' => 'http://wordpress.org/development/',
    120                                 'link_name' => 'Development Blog', 
     120                                'link_name' => 'Development Blog',
    121121                                'link_category' => 0,
    122122                                'link_rss' => 'http://wordpress.org/development/feed/',
     
    162162    $now_gmt = gmdate('Y-m-d H:i:s');
    163163    $first_post_guid = get_option('home') . '/?p=1';
    164    
     164
    165165    $wpdb->insert( $wpdb->posts, array(
    166166                                'post_author' => $user_id,
     
    177177                                'guid' => $first_post_guid,
    178178                                'comment_count' => 1,
    179                                 'to_ping' => '', 
     179                                'to_ping' => '',
    180180                                'pinged' => '',
    181181                                'post_content_filtered' => ''
     
    209209                                'guid' => $first_post_guid,
    210210                                'post_type' => 'page',
    211                                 'to_ping' => '', 
     211                                'to_ping' => '',
    212212                                'pinged' => '',
    213213                                'post_content_filtered' => ''
     
    519519            $comment_content = deslash($comment->comment_content);
    520520            $comment_author = deslash($comment->comment_author);
    521            
     521
    522522            $wpdb->update($wpdb->comments, compact('comment_content', 'comment_author'), array('comment_ID' => $comment->comment_ID) );
    523523        }
     
    530530            $link_name = deslash($link->link_name);
    531531            $link_description = deslash($link->link_description);
    532            
     532
    533533            $wpdb->update( $wpdb->links, compact('link_name', 'link_description'), array('link_id' => $link->link_id) );
    534534        }
     
    642642        foreach ($objects as $object) {
    643643            $wpdb->update( $wpdb->posts, array( 'post_status' => 'attachment',
    644                                                 'post_mime_type' => $object->post_type, 
     644                                                'post_mime_type' => $object->post_type,
    645645                                                'post_type' => ''),
    646646                                         array( 'ID' => $object->ID ) );
Note: See TracChangeset for help on using the changeset viewer.